* @throws GridException If failed.
*/
private GridClientTestRestServer runServer(int idx, boolean failOnConnect) throws GridException {
GridClientTestRestServer srv = new GridClientTestRestServer(FIRST_SERVER_PORT + idx, failOnConnect, log());
srv.start();
srvs[idx] = srv;
return srv;
}