Skip to content

Commit 0f5c79f

Browse files
committed
[grid] Avoid hard coding a port in a test
1 parent 1d14c22 commit 0f5c79f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

java/server/test/org/openqa/selenium/grid/router/EndToEndTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ private static Object[] createInMemory() throws MalformedURLException, URISyntax
128128
"inproc://end-to-end-sub",
129129
true);
130130

131-
URI nodeUri = new URI("http://localhost:4444");
131+
URI nodeUri = new URI("http://localhost:" + PortProber.findFreePort());
132132
CombinedHandler handler = new CombinedHandler();
133133
HttpClient.Factory clientFactory = new RoutableHttpClientFactory(
134134
nodeUri.toURL(),

0 commit comments

Comments
 (0)