You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2012/03/05 20:06:58 UTC
svn commit: r1297177 -
/tomcat/trunk/test/org/apache/catalina/core/TestAsyncContextImpl.java
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org