diff --git a/db/obsolete_files_test.cc b/db/obsolete_files_test.cc index d4348283cb..1595b7283d 100644 --- a/db/obsolete_files_test.cc +++ b/db/obsolete_files_test.cc @@ -54,7 +54,9 @@ class ObsoleteFilesTest : public DBTestBase { AddKeys(numKeysPerFile, startKey); startKey += numKeysPerFile; ASSERT_OK(dbfull()->TEST_FlushMemTable()); - ASSERT_OK(dbfull()->TEST_WaitForFlushMemTable()); + ASSERT_OK( + dbfull()->TEST_WaitForCompact()); // wait for background flush (flush + // is also a kind of compaction). } }