Skip to content

Commit faf7691

Browse files
committed
Close DB at the end of DontRollEmptyLogs test
1 parent 1803ed2 commit faf7691

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

db/column_family_test.cc

+5
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ class ColumnFamilyTest {
5757
DestroyDB(dbname_, Options(db_options_, column_family_options_));
5858
}
5959

60+
~ColumnFamilyTest() {
61+
delete env_;
62+
}
63+
6064
void Close() {
6165
for (auto h : handles_) {
6266
delete h;
@@ -931,6 +935,7 @@ TEST(ColumnFamilyTest, DontRollEmptyLogs) {
931935
int total_new_writable_files =
932936
env_->GetNumberOfNewWritableFileCalls() - num_writable_file_start;
933937
ASSERT_EQ(total_new_writable_files, handles_.size() + 1);
938+
Close();
934939
}
935940

936941
} // namespace rocksdb

0 commit comments

Comments
 (0)