diff --git a/src/test/java/org/takes/http/BkBasicTest.java b/src/test/java/org/takes/http/BkBasicTest.java index 7a5c52623..d33c0268d 100644 --- a/src/test/java/org/takes/http/BkBasicTest.java +++ b/src/test/java/org/takes/http/BkBasicTest.java @@ -160,6 +160,7 @@ void addressesInHeadersAddedWithoutSlashes() throws Exception { } @Test + @SuppressWarnings("PMD.AvoidUsingHardCodedIP") void handlesTwoRequestInOneConnection() throws Exception { final String text = "Hello Twice!"; final ByteArrayOutputStream output = new ByteArrayOutputStream(); @@ -176,7 +177,7 @@ void handlesTwoRequestInOneConnection() throws Exception { } ).start(); try (Socket socket = new Socket( - server.getInetAddress(), + "127.0.0.1", server.getLocalPort() ) ) {