diff --git a/test/unit/org/apache/cassandra/db/compaction/LeveledCompactionStrategyTest.java b/test/unit/org/apache/cassandra/db/compaction/LeveledCompactionStrategyTest.java index 56f12deabf..9392195ed4 100644 --- a/test/unit/org/apache/cassandra/db/compaction/LeveledCompactionStrategyTest.java +++ b/test/unit/org/apache/cassandra/db/compaction/LeveledCompactionStrategyTest.java @@ -69,7 +69,7 @@ public class LeveledCompactionStrategyTest extends SchemaLoader LeveledCompactionStrategy strat = (LeveledCompactionStrategy)store.getCompactionStrategy(); - while (strat.getLevelSize(0) > 0) + while (strat.getLevelSize(0) > 1) { store.forceMajorCompaction(); Thread.sleep(200);