From: markt Date: Sun, 7 Mar 2010 21:25:37 +0000 (+0000) Subject: Fix intermittent test failures X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=df17e2b6b5879c7523f1be9d74b1e7cb5600f4b7;p=tomcat7.0 Fix intermittent test failures git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@920120 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/test/org/apache/catalina/startup/TestTomcatSSL.java b/test/org/apache/catalina/startup/TestTomcatSSL.java index 4efa78d20..637431eec 100644 --- a/test/org/apache/catalina/startup/TestTomcatSSL.java +++ b/test/org/apache/catalina/startup/TestTomcatSSL.java @@ -144,8 +144,11 @@ public class TestTomcatSSL extends TomcatBaseTest { os.write("GET /examples/servlets/servlet/HelloWorldExample HTTP/1.0\n".getBytes()); os.flush(); + InputStream is = socket.getInputStream(); + // Make sure the NIO connector has read the request before the handshake + Thread.sleep(100); socket.startHandshake(); handshakeDone = false; byte[] b = new byte[0];