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