Merge pull request #2153 from navis/fix-testfail-DruidCoordinatorTest

Another try to fix DruidCoordinatorTest#testCoordinatorRun
This commit is contained in:
Fangjin Yang 2015-12-27 17:03:46 -08:00
commit d94821998f

View File

@ -343,6 +343,9 @@ public class DruidCoordinatorTest extends CuratorTestBase
Thread.sleep(50);
}
// wait historical data to be updated
Thread.sleep(druidCoordinatorConfig.getCoordinatorPeriod().getMillis());
Map<String, CountingMap<String>> replicationStatus = coordinator.getReplicationStatus();
Assert.assertNotNull(replicationStatus);
Assert.assertEquals(1, replicationStatus.entrySet().size());