5s is plenty when things are working and 10s is too long when they aren't.
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 20 Sep 2011 16:46:17 +0000 (16:46 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 20 Sep 2011 16:46:17 +0000 (16:46 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1173241 13f79535-47bb-0310-9956-ffa450edef68

test/org/apache/catalina/comet/TestCometProcessor.java

index d63576e..b1916bb 100644 (file)
@@ -156,14 +156,13 @@ public class TestCometProcessor extends TomcatBaseTest {
 
         // Wait for the write thread to stop
         int count = 0;
-        while (writeThread.isAlive() && count < 100) {
+        while (writeThread.isAlive() && count < 50) {
             Thread.sleep(100);
             count ++;
         }
 
         // Wait for the read thread to stop
-        count = 0;
-        while (readThread.isAlive() && count < 100) {
+        while (readThread.isAlive() && count < 50) {
             Thread.sleep(100);
             count ++;
         }