diff --git a/jetty-servlet/src/test/java/org/eclipse/jetty/servlet/AsyncContextTest.java b/jetty-servlet/src/test/java/org/eclipse/jetty/servlet/AsyncContextTest.java index f985c0f9f90..f591a65ada0 100644 --- a/jetty-servlet/src/test/java/org/eclipse/jetty/servlet/AsyncContextTest.java +++ b/jetty-servlet/src/test/java/org/eclipse/jetty/servlet/AsyncContextTest.java @@ -203,9 +203,13 @@ public class AsyncContextTest { final AsyncContext asyncContext; if (request.getParameter("dispatchRequestResponse") != null) + { asyncContext = request.startAsync(request,response); + } else + { asyncContext = request.startAsync(); + } new Thread(new DispatchingRunnable(asyncContext)).start(); }