From 07efbb728d47b8030481cce317e299187a137333 Mon Sep 17 00:00:00 2001 From: Jan Bartel Date: Thu, 28 Nov 2019 09:34:39 +1100 Subject: [PATCH] Issue #4351 Lessen wait times. Signed-off-by: Jan Bartel --- .../test/java/org/eclipse/jetty/servlet/InitServletTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jetty-servlet/src/test/java/org/eclipse/jetty/servlet/InitServletTest.java b/jetty-servlet/src/test/java/org/eclipse/jetty/servlet/InitServletTest.java index 66362223a77..70935978a15 100644 --- a/jetty-servlet/src/test/java/org/eclipse/jetty/servlet/InitServletTest.java +++ b/jetty-servlet/src/test/java/org/eclipse/jetty/servlet/InitServletTest.java @@ -59,7 +59,7 @@ public class InitServletTest { //Make the initialization last a little while so //other request can run - Thread.sleep(5000); + Thread.sleep(2000); } catch (InterruptedException e) { @@ -76,6 +76,7 @@ public class InitServletTest if (initCount.get() != 1) { resp.sendError(500, "Servlet not initialized!"); + System.err.println("NOT INIT"); } } } @@ -130,7 +131,7 @@ public class InitServletTest r1.method(HttpMethod.GET).send(l); //Need to give 1st request a head start before request2 - Thread.sleep(1000); + Thread.sleep(500); //req2: should see servlet fully initialized by request1 Request r2 = client.newRequest("http://localhost:" + port + "/r2");