From fc49783275567e11916bc634551bac9cfd166c42 Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Mon, 17 Sep 2012 17:42:55 +1000 Subject: [PATCH] jetty-9 improved test --- .../org/eclipse/jetty/server/ConnectorTimeoutTest.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/jetty-server/src/test/java/org/eclipse/jetty/server/ConnectorTimeoutTest.java b/jetty-server/src/test/java/org/eclipse/jetty/server/ConnectorTimeoutTest.java index 0d8a0bc0081..7711bd7f52d 100644 --- a/jetty-server/src/test/java/org/eclipse/jetty/server/ConnectorTimeoutTest.java +++ b/jetty-server/src/test/java/org/eclipse/jetty/server/ConnectorTimeoutTest.java @@ -249,16 +249,19 @@ public abstract class ConnectorTimeoutTest extends HttpServerTestFixture { os.write("THIS DATA SHOULD NOT BE PARSED!\n\n".getBytes("utf-8")); os.flush(); - Thread.sleep(500); + Thread.sleep(100); } Assert.fail("half close should have timed out"); } catch(SocketException e) { // expected + + // Give the SSL onClose time to act + Thread.sleep(100); } - // check the server side is closed + // check the server side is closed Assert.assertFalse(endPoint.isOpen()); }