Fix intermittent test failures
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 7 Mar 2010 21:25:37 +0000 (21:25 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 7 Mar 2010 21:25:37 +0000 (21:25 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@920120 13f79535-47bb-0310-9956-ffa450edef68

test/org/apache/catalina/startup/TestTomcatSSL.java

index 4efa78d..637431e 100644 (file)
@@ -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];