Skip to content

Commit

Permalink
#1339 test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Oct 29, 2024
1 parent 1d1cd51 commit 9c99ad6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/java/org/takes/http/BkBasicTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -176,7 +177,7 @@ void handlesTwoRequestInOneConnection() throws Exception {
}
).start();
try (Socket socket = new Socket(
server.getInetAddress(),
"127.0.0.1",
server.getLocalPort()
)
) {
Expand Down

0 comments on commit 9c99ad6

Please sign in to comment.