From 883f57af72495667c4e9c401936f294571959d67 Mon Sep 17 00:00:00 2001 From: markt Date: Tue, 20 Sep 2011 16:46:17 +0000 Subject: [PATCH] 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 --- test/org/apache/catalina/comet/TestCometProcessor.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 ++; } -- 2.11.0