Skip to content

Commit

Permalink
Remove hard-coded port from test
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Sep 28, 2021
1 parent 15c48c4 commit fd5af83
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ private static Server<?> createServer(HttpHandler handler) {
public void setup() throws URISyntaxException, MalformedURLException {
Tracer tracer = DefaultTestTracer.createTracer();
EventBus bus = new GuavaEventBus();
URI nodeUri = new URI("http://localhost:4444");
int nodePort = PortProber.findFreePort();
URI nodeUri = new URI("http://localhost:" + nodePort);
CombinedHandler handler = new CombinedHandler();
clientFactory = new RoutableHttpClientFactory(
nodeUri.toURL(), handler,
Expand Down

0 comments on commit fd5af83

Please sign in to comment.