diff --git a/db/db_sst_test.cc b/db/db_sst_test.cc index 5cfbd6675..c25ead6e2 100644 --- a/db/db_sst_test.cc +++ b/db/db_sst_test.cc @@ -385,6 +385,7 @@ TEST_F(DBSSTTest, RateLimitedDelete) { // Compaction will move the 4 files in L0 to trash and create 1 L1 file ASSERT_OK(db_->CompactRange(CompactRangeOptions(), nullptr, nullptr)); + ASSERT_OK(dbfull()->TEST_WaitForCompact(true)); ASSERT_EQ("0,1", FilesPerLevel(0)); uint64_t delete_start_time = env_->NowMicros();