Skip to content

Commit

Permalink
Merge pull request #12409 from jetty/jetty-12.0.x-debugWebSocketDistr…
Browse files Browse the repository at this point in the history
…ibutionTests

Add extra error logging for WebSocket client tests in DistributionTests
  • Loading branch information
lachlan-roberts authored Nov 14, 2024
2 parents 1ee0ad6 + d05e6f3 commit 91fd54c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ public void testWebsocketClientInWebappProvidedByServer(String scheme, String en
startHttpClient(ssl);
URI serverUri = URI.create(scheme + "://localhost:" + port + "/test");
ContentResponse response = client.GET(serverUri);
assertEquals(HttpStatus.OK_200, response.getStatus());
assertEquals(HttpStatus.OK_200, response.getStatus(), response.getContentAsString());
String content = response.getContentAsString();
assertThat(content, containsString("WebSocketEcho: success"));
assertThat(content, containsString("ConnectTimeout: 4999"));
Expand Down Expand Up @@ -528,7 +528,7 @@ public void testWebsocketClientInWebapp(String scheme, String env, String jpms)
startHttpClient(scheme.equals("https"));
URI serverUri = URI.create(scheme + "://localhost:" + port + "/test");
ContentResponse response = client.GET(serverUri);
assertEquals(HttpStatus.OK_200, response.getStatus());
assertEquals(HttpStatus.OK_200, response.getStatus(), response.getContentAsString());
String content = response.getContentAsString();
assertThat(content, containsString("WebSocketEcho: success"));
assertThat(content, containsString("ConnectTimeout: 4999"));
Expand Down

0 comments on commit 91fd54c

Please sign in to comment.