This is an automated email from the ASF dual-hosted git repository.
rainerjung 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 d812a0ba87 Fix sporadic test failure in
TestAccessLogValveFile.testBufferedFlush()
d812a0ba87 is described below
commit d812a0ba87b1a3d4a1395185fc7284e6fcab79e6
Author: Rainer Jung <[email protected]>
AuthorDate: Sun May 3 12:00:41 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 fe850dc953..0b27282416 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]