From 3b2fa9f1de1af2154d56b2270f0878b14fc89d03 Mon Sep 17 00:00:00 2001 From: Yicheng Qin Date: Sat, 22 Aug 2015 17:57:12 -0700 Subject: [PATCH] storage: fix TestKeyIndexCompact It fails to pass before. --- storage/key_index_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/storage/key_index_test.go b/storage/key_index_test.go index 6f82b5c59..d419d9328 100644 --- a/storage/key_index_test.go +++ b/storage/key_index_test.go @@ -291,6 +291,7 @@ func TestKeyIndexCompact(t *testing.T) { } } + ki = newTestKeyIndex() // Jump Compaction for i, tt := range tests { if (i%2 == 0 && i < 6) || (i%2 == 1 && i > 6) {