Browse Source

storage: fix TestKeyIndexCompact

It fails to pass before.
Yicheng Qin 10 years ago
parent
commit
3b2fa9f1de
1 changed files with 1 additions and 0 deletions
  1. 1 0
      storage/key_index_test.go

+ 1 - 0
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) {