diff --git a/tests/test-distribution/test-distribution-common/src/test/java/org/eclipse/jetty/tests/distribution/DistributionTests.java b/tests/test-distribution/test-distribution-common/src/test/java/org/eclipse/jetty/tests/distribution/DistributionTests.java index 5f57619d7093..c9e5e27e44c2 100644 --- a/tests/test-distribution/test-distribution-common/src/test/java/org/eclipse/jetty/tests/distribution/DistributionTests.java +++ b/tests/test-distribution/test-distribution-common/src/test/java/org/eclipse/jetty/tests/distribution/DistributionTests.java @@ -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")); @@ -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"));