This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new f6263c14e0 Another attempt to address GitHub CI failures
f6263c14e0 is described below
commit f6263c14e01f7da4e95a44440e881024de2a56a4
Author: Mark Thomas <[email protected]>
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 aaa3a9e593..4194e4172e 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() {
@@ -145,8 +145,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) {
@@ -159,7 +157,7 @@ public class TestExtendedAccessLogValve extends
TomcatBaseTest {
}
processLogContent(content);
- }
+}
private int countLogLines(String content) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]