From df17e2b6b5879c7523f1be9d74b1e7cb5600f4b7 Mon Sep 17 00:00:00 2001 From: markt Date: Sun, 7 Mar 2010 21:25:37 +0000 Subject: [PATCH] Fix intermittent test failures git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@920120 13f79535-47bb-0310-9956-ffa450edef68 --- test/org/apache/catalina/startup/TestTomcatSSL.java | 3 +++ 1 file changed, 3 insertions(+) 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]; -- 2.11.0