Author: markt
Date: Sat Aug 24 08:01:26 2013
New Revision: 1517115
URL: http://svn.apache.org/r1517115
Log:
Two of us have got this wrong so separate the tests to make the logic clearer
and increase the timeout to 10s.
Modified:
tomcat/trunk/test/org/apache/catalina/nonblocking/TestNonBlockingAPI.java
Modified:
tomcat/trunk/test/org/apache/catalina/nonblocking/TestNonBlockingAPI.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/nonblocking/TestNonBlockingAPI.java?rev=1517115&r1=1517114&r2=1517115&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/catalina/nonblocking/TestNonBlockingAPI.java
(original)
+++ tomcat/trunk/test/org/apache/catalina/nonblocking/TestNonBlockingAPI.java
Sat Aug 24 08:01:26 2013
@@ -313,9 +313,13 @@ public class TestNonBlockingAPI extends
// Listeners are invoked and access valve entries created on a
different
// thread so give that thread a chance to complete its work.
int count = 0;
- while (count < 50 &&
- !(servlet.wlistener.onErrorInvoked ||
servlet.rlistener.onErrorInvoked) &&
- alv.getEntryCount() < 1) {
+ while (count < 100 &&
+ !(servlet.wlistener.onErrorInvoked ||
servlet.rlistener.onErrorInvoked)) {
+ Thread.sleep(100);
+ count ++;
+ }
+
+ while (count < 100 && alv.getEntryCount() < 1) {
Thread.sleep(100);
count ++;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]