From af2569c2d852e20f1e6670d7e068fa4e9065500d Mon Sep 17 00:00:00 2001 From: Hitoshi Mitake Date: Wed, 16 Dec 2015 17:01:04 +0900 Subject: [PATCH] storage, test: unlock transaction in the retry loop --- storage/kvstore_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/kvstore_test.go b/storage/kvstore_test.go index bf82a8189..3ae16e645 100644 --- a/storage/kvstore_test.go +++ b/storage/kvstore_test.go @@ -654,11 +654,11 @@ func TestRestoreContinueUnfinishedCompaction(t *testing.T) { tx = s1.b.BatchTx() tx.Lock() ks, _ := tx.UnsafeRange(keyBucketName, revbytes, nil, 0) + tx.Unlock() if len(ks) != 0 { time.Sleep(100 * time.Millisecond) continue } - tx.Unlock() return }