瀏覽代碼

storage: fix TestKeyIndexCompact

It fails to pass before.
Yicheng Qin 10 年之前
父節點
當前提交
3b2fa9f1de
共有 1 個文件被更改,包括 1 次插入0 次删除
  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
 	// Jump Compaction
 	for i, tt := range tests {
 	for i, tt := range tests {
 		if (i%2 == 0 && i < 6) || (i%2 == 1 && i > 6) {
 		if (i%2 == 0 && i < 6) || (i%2 == 1 && i > 6) {