Skip to content

Commit

Permalink
Merge pull request #8643 from gyuho/ordering
Browse files Browse the repository at this point in the history
clientv3/ordering: add missing 'errOrderViolation' error check
  • Loading branch information
gyuho authored Oct 4, 2017
2 parents 7fb5b90 + b2f5393 commit 78c5741
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clientv3/ordering/kv_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ func TestDetectTxnOrderViolation(t *testing.T) {
cli.SetEndpoints(clus.Members[2].GRPCAddr())

_, err = orderingKv.Get(ctx, "foo", clientv3.WithSerializable())
if err != nil {
t.Fatal(err)
if err != errOrderViolation {
t.Fatalf("expected %v, got %v", errOrderViolation, err)
}
orderingTxn = orderingKv.Txn(ctx)
_, err = orderingTxn.If(
Expand Down

0 comments on commit 78c5741

Please sign in to comment.