fix(store): corrected CAS and CAD fail cause in response

specifically when both prevIndex and prevValue are provided
This commit is contained in:
Mikhail Goncharov
2014-03-06 17:32:26 +07:00
committed by Mikhail Goncharov
parent 653274b9f6
commit 074c78d725
4 changed files with 122 additions and 12 deletions

View File

@@ -151,7 +151,7 @@ func TestV1SetKeyCASOnValueFail(t *testing.T) {
body := tests.ReadBodyJSON(resp)
assert.Equal(t, body["errorCode"], 101, "")
assert.Equal(t, body["message"], "Compare failed", "")
assert.Equal(t, body["cause"], "[AAA != XXX] [0 != 2]", "")
assert.Equal(t, body["cause"], "[AAA != XXX]", "")
assert.Equal(t, body["index"], 2, "")
})
}