Author: markt Date: Mon Aug 15 13:52:18 2011 New Revision: 1157847 URL: http://svn.apache.org/viewvc?rev=1157847&view=rev Log: Also seeing similar failures with NIO & APR
Modified: tomcat/trunk/test/org/apache/catalina/core/TestStandardContextValve.java Modified: tomcat/trunk/test/org/apache/catalina/core/TestStandardContextValve.java URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/catalina/core/TestStandardContextValve.java?rev=1157847&r1=1157846&r2=1157847&view=diff ============================================================================== --- tomcat/trunk/test/org/apache/catalina/core/TestStandardContextValve.java (original) +++ tomcat/trunk/test/org/apache/catalina/core/TestStandardContextValve.java Mon Aug 15 13:52:18 2011 @@ -121,6 +121,17 @@ public class TestStandardContextValve ex int rc = getUrl("http://localhost:" + getPort() + "/test", new ByteChunk(), null); + // Need to allow time (but not too long in case the test fails) for + // ServletRequestListener to complete + int i = 20; + while (i > 0) { + if (trace.toString().endsWith("Destroy")) { + break; + } + Thread.sleep(250); + i--; + } + assertEquals(Response.SC_NOT_FOUND, rc); assertEquals("InitErrorDestroy", trace.toString()); } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org