改进单元测试,以便于可以使用go test ../...进行执行

This commit is contained in:
刘祥超
2024-04-14 19:59:56 +08:00
parent 7141add68e
commit 27c61ca0d4
8 changed files with 150 additions and 16 deletions

View File

@@ -142,6 +142,8 @@ func TestStore_CloseTwice(t *testing.T) {
func TestStore_Count(t *testing.T) {
testCountStore(t)
_ = testingStore.Close()
}
var testingStore *kvstore.Store