mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #8643 from gyuho/ordering
clientv3/ordering: add missing 'errOrderViolation' error check
This commit is contained in:
commit
78c57418e0
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user