SOLR-11670: Make sure defaults are applied in simulated cluster.

This commit is contained in:
Andrzej Bialecki 2018-03-19 15:16:50 +01:00
parent 9980f05ac3
commit ed2d358330
1 changed files with 4 additions and 0 deletions

View File

@ -68,6 +68,10 @@ public class ScheduledMaintenanceTriggerTest extends SolrCloudTestCase {
solrClient = cluster.getSolrClient();
} else {
cloudManager = SimCloudManager.createCluster(1, TimeSource.get("simTime:50"));
// wait for defaults to be applied - due to accelerated time sometimes we may miss this
cloudManager.getTimeSource().sleep(10000);
AutoScalingConfig cfg = cloudManager.getDistribStateManager().getAutoScalingConfig();
assertFalse("autoscaling config is empty", cfg.isEmpty());
solrClient = ((SimCloudManager)cloudManager).simGetSolrClient();
}
timeSource = cloudManager.getTimeSource();