From 993e82a85bbd69e318a813ab260b7456e4785ff8 Mon Sep 17 00:00:00 2001 From: Gyuho Lee Date: Sun, 19 Jan 2020 23:55:37 -0800 Subject: [PATCH] clientv3/integration: fix a typo in "TestLeasingTxnRangeCmp" Signed-off-by: Gyuho Lee --- clientv3/integration/leasing_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)