Another try to fix DruidCoordinatorTest#testCoordinatorRun

This commit is contained in:
navis.ryu 2015-12-24 03:02:37 +09:00
parent 508629916d
commit 10c19fe9f8
1 changed files with 3 additions and 0 deletions

View File

@ -342,6 +342,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());