mirror of https://github.com/apache/lucene.git
SOLR-11670: Make sure defaults are applied in simulated cluster.
This commit is contained in:
parent
9980f05ac3
commit
ed2d358330
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue