Always breaks out of loop in first iteration, so just remove loop
@@ -589,8 +589,6 @@ public class RpcServerTest extends FleetControllerTest {
Target connection = supervisor.connect(new Spec("localhost", rpcPort));
assertTrue(connection.isValid());
- // Possibly do request multiple times if we haven't lost slobrok contact first times yet.
- for (int j = 0; j <= nodeCount; ++j) {
Request req = new Request("getNodeList");
connection.invokeSync(req, timeoutS);
assertEquals(ErrorCode.NONE, req.errorCode(), req.errorMessage());
@@ -617,8 +615,6 @@ public class RpcServerTest extends FleetControllerTest {
connection2.invokeSync(req2, timeoutS);
assertEquals(ErrorCode.NONE, req.errorCode(), req2.toString());
}
- break;
- }
}
}
