From c1b03c6d8c11af882ab8aaf8bfb1c11100463aad Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Thu, 17 Mar 2016 09:58:29 +1100 Subject: [PATCH] Issue #431 HttClientTest cleanup --- .../org/eclipse/jetty/http/client/HttpClientTest.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/test-http-client-transport/src/test/java/org/eclipse/jetty/http/client/HttpClientTest.java b/tests/test-http-client-transport/src/test/java/org/eclipse/jetty/http/client/HttpClientTest.java index cc7651c34ba..2c91d53adcd 100644 --- a/tests/test-http-client-transport/src/test/java/org/eclipse/jetty/http/client/HttpClientTest.java +++ b/tests/test-http-client-transport/src/test/java/org/eclipse/jetty/http/client/HttpClientTest.java @@ -257,8 +257,13 @@ public class HttpClientTest extends AbstractTest @Override public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { - baseRequest.setHandled(true); - response.getOutputStream().write(new byte[length]); + try + { + baseRequest.setHandled(true); + response.getOutputStream().write(new byte[length]); + } + catch(IOException e) + {} } });