Browse Source

add delete db for all tests

naive_version
ArcueidType 1 month ago
parent
commit
8edba27b88
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      test/ttl_test.cc

+ 4
- 0
test/ttl_test.cc View File

@ -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…
Cancel
Save