[grid] Making sure the distributor has all nodes for the test
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
-
import org.assertj.core.api.AbstractAssert;
import org.junit.Before;
import org.junit.Ignore;
@@ -517,6 +516,7 @@ public void theMostLightlyLoadedNodeIsSelectedFirst() {
.add(lightest)
.add(massive);
+ wait.until(obj -> distributor.getStatus().getNodes().size() == 4);
wait.until(obj -> distributor.getStatus().hasCapacity());
try (NewSessionPayload payload = NewSessionPayload.create(caps)) {
