diff --git a/db/db_test2.cc b/db/db_test2.cc index 0ce6f1e4d..91a174ad6 100644 --- a/db/db_test2.cc +++ b/db/db_test2.cc @@ -3973,7 +3973,9 @@ TEST_F(DBTest2, RateLimitedCompactionReads) { ASSERT_OK(Put(Key(j), DummyString(kBytesPerKey))); } ASSERT_OK(dbfull()->TEST_WaitForFlushMemTable()); - ASSERT_EQ(i + 1, NumTableFilesAtLevel(0)); + if (i + 1 < kNumL0Files) { + ASSERT_EQ(i + 1, NumTableFilesAtLevel(0)); + } } ASSERT_OK(dbfull()->TEST_WaitForCompact()); ASSERT_EQ(0, NumTableFilesAtLevel(0));