Author: markt
Date: Mon Mar 5 19:06:58 2012
New Revision: 1297177
URL: http://svn.apache.org/viewvc?rev=1297177&view=rev
Log:
Fix an intermittent unit test failure. Runs fine in Eclipse but fails on
the command line.
Modified:
tomcat/trunk/test/org/apache/catalina/core/TestAsyncContextImpl.java
Modified: tomcat/trunk/test/org/apache/catalina/core/TestAsyncContextImpl.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/core/TestAsyncContextImpl.java?rev=1297177&r1=1297176&r2=1297177&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/catalina/core/TestAsyncContextImpl.java
(original)
+++ tomcat/trunk/test/org/apache/catalina/core/TestAsyncContextImpl.java Mon
Mar 5 19:06:58 2012
@@ -939,6 +939,13 @@ public class TestAsyncContextImpl extend
if (flush) {
resp.flushBuffer();
}
+ try {
+ // Give the original thread a chance to exit the
+ // ErrorReportValve before we throw this exception
+ Thread.sleep(500);
+ } catch (InterruptedException e) {
+ throw new ServletException(e);
+ }
throw new ServletException("Opps.");
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]