瀏覽代碼

add delete db for all tests

naive_version
ArcueidType 3 週之前
父節點
當前提交
8edba27b88
共有 1 個檔案被更改,包括 4 行新增0 行删除
  1. +4
    -0
      test/ttl_test.cc

+ 4
- 0
test/ttl_test.cc 查看文件

@ -72,6 +72,8 @@ TEST(TestTTL, ReadTTL) {
status = db->Get(readOptions, key, &value);
ASSERT_FALSE(status.ok());
}
delete db;
}
TEST(TestTTL, CompactionTTL) {
@ -100,6 +102,8 @@ TEST(TestTTL, CompactionTTL) {
uint64_t sizes1[1];
db->GetApproximateSizes(ranges1, 1, sizes1);
ASSERT_EQ(sizes1[0], 0);
delete db;
}

Loading…
取消
儲存