From 8c7fd3bc490e3f7a68f13a093836d8d7edf139df Mon Sep 17 00:00:00 2001 From: Fangjin Yang Date: Fri, 14 Dec 2012 09:12:02 -0800 Subject: [PATCH] more specific checks in rule test --- .../com/metamx/druid/master/DruidMasterRuleRunnerTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/test/java/com/metamx/druid/master/DruidMasterRuleRunnerTest.java b/server/src/test/java/com/metamx/druid/master/DruidMasterRuleRunnerTest.java index 5076ffbefe1..c31dc670b82 100644 --- a/server/src/test/java/com/metamx/druid/master/DruidMasterRuleRunnerTest.java +++ b/server/src/test/java/com/metamx/druid/master/DruidMasterRuleRunnerTest.java @@ -357,7 +357,7 @@ public class DruidMasterRuleRunnerTest public void testRunTwoTiersTierDoesNotExist() throws Exception { emitter.emit(EasyMock.anyObject()); - EasyMock.expectLastCall().atLeastOnce(); + EasyMock.expectLastCall().times(12); EasyMock.replay(emitter); EasyMock.expect(databaseRuleManager.getRulesWithDefault(EasyMock.anyObject())).andReturn( @@ -408,7 +408,7 @@ public class DruidMasterRuleRunnerTest public void testRunRuleDoesNotExist() throws Exception { emitter.emit(EasyMock.anyObject()); - EasyMock.expectLastCall().atLeastOnce(); + EasyMock.expectLastCall().times(availableSegments.size()); EasyMock.replay(emitter); EasyMock.expect(databaseRuleManager.getRulesWithDefault(EasyMock.anyObject())).andReturn(