This is an automated email from the ASF dual-hosted git repository.
markt-asf 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 e3eaf217b8 Make test more robust
e3eaf217b8 is described below
commit e3eaf217b84fe18abc6905657bc169b0a79fafea
Author: Mark Thomas <[email protected]>
AuthorDate: Fri Apr 24 18:46:58 2026 +0100
Make test more robust
---
test/org/apache/catalina/valves/TestAccessLogValveFile.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test/org/apache/catalina/valves/TestAccessLogValveFile.java
b/test/org/apache/catalina/valves/TestAccessLogValveFile.java
index f1210898c8..51899844dc 100644
--- a/test/org/apache/catalina/valves/TestAccessLogValveFile.java
+++ b/test/org/apache/catalina/valves/TestAccessLogValveFile.java
@@ -258,12 +258,12 @@ public class TestAccessLogValveFile extends
TomcatBaseTest {
@SuppressWarnings("BusyWait")
private static void awaitFile(File file) throws InterruptedException {
- long deadline = System.currentTimeMillis() + 2000;
+ long deadline = System.currentTimeMillis() + 5000;
while (!file.exists() || file.length() == 0) {
if (System.currentTimeMillis() > deadline) {
Assert.fail("Timed out waiting for " + file.getName());
}
- Thread.sleep(2);
+ Thread.sleep(50);
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]