Skip to content

Commit

Permalink
Add extra error logging for WebSocket tests in DistributionTests
Browse files Browse the repository at this point in the history
Signed-off-by: Lachlan Roberts <lachlan.p.roberts@gmail.com>
  • Loading branch information
lachlan-roberts committed Oct 21, 2024
1 parent bc5d192 commit d05e6f3
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 d05e6f3

Please sign in to comment.