Author: markt Date: Wed Mar 9 18:30:07 2011 New Revision: 1079917 URL: http://svn.apache.org/viewvc?rev=1079917&view=rev Log: Try and make test pass more reliably. This works an 8-core Windows box and a 1-core Linux VM
Modified: tomcat/trunk/test/org/apache/catalina/connector/TestMaxConnections.java Modified: tomcat/trunk/test/org/apache/catalina/connector/TestMaxConnections.java URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/connector/TestMaxConnections.java?rev=1079917&r1=1079916&r2=1079917&view=diff ============================================================================== --- tomcat/trunk/test/org/apache/catalina/connector/TestMaxConnections.java (original) +++ tomcat/trunk/test/org/apache/catalina/connector/TestMaxConnections.java Wed Mar 9 18:30:07 2011 @@ -130,7 +130,7 @@ public class TestMaxConnections extends @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) { } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org