diff --git a/jetty-webapp/src/test/java/org/eclipse/jetty/webapp/HugeResourceTest.java b/jetty-webapp/src/test/java/org/eclipse/jetty/webapp/HugeResourceTest.java index 0faccefe180..d530cd8a4f6 100644 --- a/jetty-webapp/src/test/java/org/eclipse/jetty/webapp/HugeResourceTest.java +++ b/jetty-webapp/src/test/java/org/eclipse/jetty/webapp/HugeResourceTest.java @@ -256,6 +256,11 @@ public class HugeResourceTest request.send(responseListener); Response response = responseListener.get(5, TimeUnit.SECONDS); + try (InputStream in = responseListener.getInputStream()) + { + assertThat(in.read(), is(-1)); + } + assertThat("HTTP Response Code", response.getStatus(), is(200)); // dumpResponse(response);