You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2011/09/20 18:46:17 UTC

svn commit: r1173241 - /tomcat/trunk/test/org/apache/catalina/comet/TestCometProcessor.java

Author: markt
Date: Tue Sep 20 16:46:17 2011
New Revision: 1173241

URL: http://svn.apache.org/viewvc?rev=1173241&view=rev
Log:
5s is plenty when things are working and 10s is too long when they aren't.

Modified:
    tomcat/trunk/test/org/apache/catalina/comet/TestCometProcessor.java

Modified: tomcat/trunk/test/org/apache/catalina/comet/TestCometProcessor.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/comet/TestCometProcessor.java?rev=1173241&r1=1173240&r2=1173241&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/catalina/comet/TestCometProcessor.java (original)
+++ tomcat/trunk/test/org/apache/catalina/comet/TestCometProcessor.java Tue Sep 20 16:46:17 2011
@@ -156,14 +156,13 @@ public class TestCometProcessor extends 
 
         // 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 ++;
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org