From faf7691358da11348a69e65a48df07953ff35b38 Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Tue, 15 Apr 2014 17:12:18 -0700 Subject: [PATCH] Close DB at the end of DontRollEmptyLogs test --- db/column_family_test.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/db/column_family_test.cc b/db/column_family_test.cc index 02236c966..168549d0c 100644 --- a/db/column_family_test.cc +++ b/db/column_family_test.cc @@ -57,6 +57,10 @@ class ColumnFamilyTest { DestroyDB(dbname_, Options(db_options_, column_family_options_)); } + ~ColumnFamilyTest() { + delete env_; + } + void Close() { for (auto h : handles_) { delete h; @@ -931,6 +935,7 @@ TEST(ColumnFamilyTest, DontRollEmptyLogs) { int total_new_writable_files = env_->GetNumberOfNewWritableFileCalls() - num_writable_file_start; ASSERT_EQ(total_new_writable_files, handles_.size() + 1); + Close(); } } // namespace rocksdb