diff --git a/clientv3/integration/leasing_test.go b/clientv3/integration/leasing_test.go index 06c5d2fbb..bf45bed78 100644 --- a/clientv3/integration/leasing_test.go +++ b/clientv3/integration/leasing_test.go @@ -939,6 +939,7 @@ func TestLeasingTxnNonOwnerPut(t *testing.T) { if len(gresp.Kvs) != 1 || string(gresp.Kvs[0].Value) != "456" { t.Errorf(`expected value "def", got %+v`, gresp) } + // check puts were applied and are all in the same revision w := clus.Client(0).Watch( clus.Client(0).Ctx(), @@ -1738,7 +1739,7 @@ func TestLeasingTxnRangeCmp(t *testing.T) { cmp := clientv3.Compare(clientv3.Version("k").WithPrefix(), "=", 1) tresp, terr := lkv.Txn(context.TODO()).If(cmp).Commit() if terr != nil { - t.Fatal(err) + t.Fatal(terr) } if tresp.Succeeded { t.Fatalf("expected Succeeded=false, got %+v", tresp)