This is an automated email from the ASF dual-hosted git repository. markt-asf pushed a commit to branch 11.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 6c6909c96fe7cda6d3f3ea2ed84ed3f1c48dcac4 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]
