This is an automated email from the ASF dual-hosted git repository.
rainerjung 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 334587837f Fix sporadic test failure in
TestAccessLogValveFile.testBufferedFlush()
334587837f is described below
commit 334587837fa0e3c514f68356b24798fac246413e
Author: Rainer Jung <[email protected]>
AuthorDate: Sun May 3 12:02:45 2026 +0200
Fix sporadic test failure in TestAccessLogValveFile.testBufferedFlush()
---
test/org/apache/catalina/valves/TestAccessLogValveFile.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/test/org/apache/catalina/valves/TestAccessLogValveFile.java
b/test/org/apache/catalina/valves/TestAccessLogValveFile.java
index cf749dd7ce..e0aa3bfa6d 100644
--- a/test/org/apache/catalina/valves/TestAccessLogValveFile.java
+++ b/test/org/apache/catalina/valves/TestAccessLogValveFile.java
@@ -135,6 +135,9 @@ public class TestAccessLogValveFile extends TomcatBaseTest {
getUrl("http://localhost:" + getPort());
+ // Sporadic test failures if backgroundProcess is called
+ // directly after getUrl().
+ Thread.sleep(50);
// Flush via backgroundProcess since buffered=true
valve.backgroundProcess();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]