@@ -225,13 +225,13 @@ public void cannotStartHtmlSuite() {
225
225
@ Test
226
226
public void testRegisterNodeToHub () throws Exception {
227
227
Integer hubPort = PortProber .findFreePort ();
228
- String [] hubArgs = {"-role" , "hub" , "-port" , hubPort .toString ()};
228
+ String [] hubArgs = {"-role" , "hub" , "-host" , "localhost" , "- port" , hubPort .toString ()};
229
229
230
230
server = new GridLauncherV3 (hubArgs ).launch ();
231
231
waitUntilServerIsAvailableOnPort (hubPort );
232
232
233
233
Integer nodePort = PortProber .findFreePort ();
234
- String [] nodeArgs = {"-role" , "node" , "-hub" , "http://localhost:" + hubPort ,
234
+ String [] nodeArgs = {"-role" , "node" , "-host" , "localhost" , "- hub" , "http://localhost:" + hubPort ,
235
235
"-browser" , "browserName=htmlunit,maxInstances=1" , "-port" , nodePort .toString ()};
236
236
node = new GridLauncherV3 (nodeArgs ).launch ();
237
237
waitUntilServerIsAvailableOnPort (nodePort );
@@ -261,7 +261,7 @@ public void canStartHubUsingConfigFile() throws Exception {
261
261
+ " \" timeout\" : 3600\n "
262
262
+ "}" , hubPort );
263
263
Files .write (hubConfig , hubJson .getBytes ());
264
- String [] hubArgs = {"-role" , "hub" , "-hubConfig" , hubConfig .toString ()};
264
+ String [] hubArgs = {"-role" , "hub" , "-host" , "localhost" , "-hubConfig" , hubConfig .toString ()};
265
265
server = new GridLauncherV3 (hubArgs ).launch ();
266
266
waitUntilServerIsAvailableOnPort (hubPort );
267
267
@@ -272,7 +272,7 @@ public void canStartHubUsingConfigFile() throws Exception {
272
272
assertEquals (3600 , realHubConfig .timeout .intValue ());
273
273
274
274
Integer nodePort = PortProber .findFreePort ();
275
- String [] nodeArgs = {"-role" , "node" , "-hub" , "http://localhost:" + hubPort ,
275
+ String [] nodeArgs = {"-role" , "node" , "-host" , "localhost" , "- hub" , "http://localhost:" + hubPort ,
276
276
"-browser" , "browserName=htmlunit,maxInstances=1" , "-port" , nodePort .toString ()};
277
277
node = new GridLauncherV3 (nodeArgs ).launch ();
278
278
waitUntilServerIsAvailableOnPort (nodePort );
@@ -284,7 +284,7 @@ public void canStartHubUsingConfigFile() throws Exception {
284
284
@ Test
285
285
public void canStartNodeUsingConfigFile () throws Exception {
286
286
Integer hubPort = PortProber .findFreePort ();
287
- String [] hubArgs = {"-role" , "hub" , "-port" , hubPort .toString ()};
287
+ String [] hubArgs = {"-role" , "hub" , "-host" , "localhost" , "-port" , hubPort .toString ()};
288
288
server = new GridLauncherV3 (hubArgs ).launch ();
289
289
waitUntilServerIsAvailableOnPort (hubPort );
290
290
@@ -310,7 +310,7 @@ public void canStartNodeUsingConfigFile() throws Exception {
310
310
+ " \" custom\" : {}\n "
311
311
+ "}" , nodePort , hubPort );
312
312
Files .write (nodeConfig , nodeJson .getBytes ());
313
- String [] nodeArgs = {"-role" , "node" , "-nodeConfig" , nodeConfig .toString () };
313
+ String [] nodeArgs = {"-role" , "node" , "-host" , "localhost" , "- nodeConfig" , nodeConfig .toString () };
314
314
node = new GridLauncherV3 (nodeArgs ).launch ();
315
315
waitUntilServerIsAvailableOnPort (nodePort );
316
316
0 commit comments