This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/main by this push:
     new a53b1ba5a9 Restore original test
a53b1ba5a9 is described below

commit a53b1ba5a907019e91ac08b976f29b7714d771ef
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Tue Aug 8 17:41:48 2023 +0100

    Restore original test
---
 test/org/apache/catalina/core/TestAsyncContextImpl.java | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/test/org/apache/catalina/core/TestAsyncContextImpl.java 
b/test/org/apache/catalina/core/TestAsyncContextImpl.java
index 8158b4bca7..23f36dfb60 100644
--- a/test/org/apache/catalina/core/TestAsyncContextImpl.java
+++ b/test/org/apache/catalina/core/TestAsyncContextImpl.java
@@ -123,12 +123,7 @@ public class TestAsyncContextImpl extends TomcatBaseTest {
             counter++;
         }
 
-        String result = servlet.getResult();
-        Assert.assertTrue(result.startsWith("1false2true3true4true5"));
-
-        result = result.substring(22);
-        // Should be "false" (or possibly "") at this point. Must not be 
"true".
-        Assert.assertNotEquals("true", servlet.getResult());
+        Assert.assertEquals("1false2true3true4true5false", 
servlet.getResult());
 
         // Check the access log
         alv.validateAccessLog(1, 200, Bug49528Servlet.THREAD_SLEEP_TIME,


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to