tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1173241 - /tomcat/trunk/test/org/apache/catalina/comet/TestCometProcessor.java
Date Tue, 20 Sep 2011 16:46:17 GMT
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


Mime
View raw message