This is an automated email from the ASF dual-hosted git repository.
rainerjung pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new 1ad6686193 Fix sporadic test failure in
TestAccessLogValveFile.testBufferedFlush()
1ad6686193 is described below
commit 1ad6686193a6a34da68622bc8bbf38361572379c
Author: Rainer Jung <[email protected]>
AuthorDate: Sun May 3 12:02:11 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]