Try and make test pass more reliably. This works an 8-core Windows box and a 1-core...
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 9 Mar 2011 18:30:07 +0000 (18:30 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 9 Mar 2011 18:30:07 +0000 (18:30 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1079917 13f79535-47bb-0310-9956-ffa450edef68

test/org/apache/catalina/connector/TestMaxConnections.java

index 15963ce..36b60f8 100644 (file)
@@ -130,7 +130,7 @@ public class TestMaxConnections extends TomcatBaseTest{
         @Override
         protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
             try {
-                Thread.sleep(TestMaxConnections.soTimeout/2);
+                Thread.sleep(TestMaxConnections.soTimeout*4/5);
             }catch (InterruptedException x) {
                 
             }