From: markt Date: Tue, 20 Sep 2011 16:46:17 +0000 (+0000) Subject: 5s is plenty when things are working and 10s is too long when they aren't. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=883f57af72495667c4e9c401936f294571959d67;p=tomcat7.0 5s is plenty when things are working and 10s is too long when they aren't. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1173241 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/test/org/apache/catalina/comet/TestCometProcessor.java b/test/org/apache/catalina/comet/TestCometProcessor.java index d63576e68..b1916bba2 100644 --- a/test/org/apache/catalina/comet/TestCometProcessor.java +++ b/test/org/apache/catalina/comet/TestCometProcessor.java @@ -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 ++; }