diff --git a/db/write_callback_test.cc b/db/write_callback_test.cc index 8acd60df8..33aaab7f4 100644 --- a/db/write_callback_test.cc +++ b/db/write_callback_test.cc @@ -123,6 +123,7 @@ TEST_F(WriteCallbackTest, WriteWithCallbackTest) { DB* db; DBImpl* db_impl; + DestroyDB(dbname, options); ASSERT_OK(DB::Open(options, dbname, &db)); db_impl = dynamic_cast(db); @@ -282,6 +283,8 @@ TEST_F(WriteCallbackTest, WriteCallBackTest) { DB* db; DBImpl* db_impl; + DestroyDB(dbname, options); + options.create_if_missing = true; Status s = DB::Open(options, dbname, &db); ASSERT_OK(s);