Explorar el Código

storage: fix TestKeyIndexCompact

It fails to pass before.
Yicheng Qin hace 10 años
padre
commit
3b2fa9f1de
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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) {