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 3afdca5676 Another attempt to address GitHub CI failures
3afdca5676 is described below

commit 3afdca5676d7264fa3fee4e23387873183ca8754
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Wed Mar 19 07:22:35 2025 +0000

    Another attempt to address GitHub CI failures
---
 test/org/apache/catalina/valves/TestExtendedAccessLogValve.java | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/test/org/apache/catalina/valves/TestExtendedAccessLogValve.java 
b/test/org/apache/catalina/valves/TestExtendedAccessLogValve.java
index 30dcb7a5ed..9d2b426a70 100644
--- a/test/org/apache/catalina/valves/TestExtendedAccessLogValve.java
+++ b/test/org/apache/catalina/valves/TestExtendedAccessLogValve.java
@@ -47,7 +47,7 @@ public class TestExtendedAccessLogValve extends 
TomcatBaseTest {
 
     // Requests can return in the client before log() has been called
     private static final long SLEEP = 2;
-    private static final long SLEEP_MAX = 2000;
+    private static final long SLEEP_MAX = 21000;
 
     @Parameterized.Parameters(name = "{index}: pattern=[{0}]")
     public static Collection<Object[]> data() {
@@ -146,8 +146,6 @@ public class TestExtendedAccessLogValve extends 
TomcatBaseTest {
         int status = getUrl(url, out, reqHead, resHead);
         Assert.assertEquals(HttpServletResponse.SC_OK, status);
 
-        tomcat.stop();
-
         long startWait = System.currentTimeMillis();
         String content = writer.toString();
         while (countLogLines(content) == 0 && System.currentTimeMillis() - 
startWait < SLEEP_MAX) {
@@ -160,7 +158,7 @@ public class TestExtendedAccessLogValve extends 
TomcatBaseTest {
         }
 
         processLogContent(content);
-    }
+}
 
 
     private int countLogLines(String content) {


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

Reply via email to