Parcourir la source

add delete db for all tests

naive_version
ArcueidType il y a 4 mois
Parent
révision
8edba27b88
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. +4
    -0
      test/ttl_test.cc

+ 4
- 0
test/ttl_test.cc Voir le fichier

@ -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;
}

Chargement…
Annuler
Enregistrer