From 19c3bd3b3b24372f2a6fa026ec34b546826159ee Mon Sep 17 00:00:00 2001 From: Yuki Morishita Date: Tue, 9 Oct 2012 10:54:35 -0500 Subject: [PATCH] fix infinite loop in LCS test --- .../cassandra/db/compaction/LeveledCompactionStrategyTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);