Reduce timeout from 60s to 3s to speed up async tests
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 23 Sep 2010 21:08:14 +0000 (21:08 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 23 Sep 2010 21:08:14 +0000 (21:08 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1000625 13f79535-47bb-0310-9956-ffa450edef68

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

index c35b49b..5c78c3e 100644 (file)
@@ -121,6 +121,8 @@ public abstract class TomcatBaseTest extends TestCase {
         // If each test is running on same port - they
         // may interfere with each other (on unix at least)
         connector.setPort(getNextPort());
+        // Mainly set to reduce timeouts during async tests
+        connector.setAttribute("connectionTimeout", "3000");
         tomcat.getService().addConnector(connector);
         tomcat.setConnector(connector);