Skip to content

Commit 9c99ad6

Browse files
committed
#1339 test fix
1 parent 1d1cd51 commit 9c99ad6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/java/org/takes/http/BkBasicTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ void addressesInHeadersAddedWithoutSlashes() throws Exception {
160160
}
161161

162162
@Test
163+
@SuppressWarnings("PMD.AvoidUsingHardCodedIP")
163164
void handlesTwoRequestInOneConnection() throws Exception {
164165
final String text = "Hello Twice!";
165166
final ByteArrayOutputStream output = new ByteArrayOutputStream();
@@ -176,7 +177,7 @@ void handlesTwoRequestInOneConnection() throws Exception {
176177
}
177178
).start();
178179
try (Socket socket = new Socket(
179-
server.getInetAddress(),
180+
"127.0.0.1",
180181
server.getLocalPort()
181182
)
182183
) {

0 commit comments

Comments
 (0)