From 55521e85c9bd04ef36d7d01dbaaf65130db81582 Mon Sep 17 00:00:00 2001 From: Clebert Suconic Date: Wed, 21 Feb 2018 11:38:47 -0500 Subject: [PATCH] NO-JIRA Changing port on test as it will clash with the CI if running at 8080 --- .../apache/activemq/artemis/utils/NetworkHealthTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/artemis-commons/src/test/java/org/apache/activemq/artemis/utils/NetworkHealthTest.java b/artemis-commons/src/test/java/org/apache/activemq/artemis/utils/NetworkHealthTest.java index 6534457934..b332428236 100644 --- a/artemis-commons/src/test/java/org/apache/activemq/artemis/utils/NetworkHealthTest.java +++ b/artemis-commons/src/test/java/org/apache/activemq/artemis/utils/NetworkHealthTest.java @@ -92,7 +92,7 @@ public class NetworkHealthTest { private void startHTTPServer() throws IOException { Assert.assertNull(httpServer); - InetSocketAddress address = new InetSocketAddress("127.0.0.1", 8080); + InetSocketAddress address = new InetSocketAddress("127.0.0.1", 8787); httpServer = HttpServer.create(address, 100); httpServer.start(); httpServer.createContext("/", new HttpHandler() { @@ -197,15 +197,15 @@ public class NetworkHealthTest { NetworkHealthCheck check = addCheck(new NetworkHealthCheck(null, 100, 1000)); - Assert.assertTrue(check.check(new URL("http://localhost:8080"))); + Assert.assertTrue(check.check(new URL("http://localhost:8787"))); stopHTTPServer(); - Assert.assertFalse(check.check(new URL("http://localhost:8080"))); + Assert.assertFalse(check.check(new URL("http://localhost:8787"))); check.addComponent(component); - URL url = new URL("http://localhost:8080"); + URL url = new URL("http://localhost:8787"); Assert.assertFalse(check.check(url)); startHTTPServer();