This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-io.git
commit 19df5f983929dc07af9d5ebabb571585dd214c0b Author: Gary Gregory <gardgreg...@gmail.com> AuthorDate: Sun Sep 19 12:16:35 2021 -0400 Try to fix random build failures on GitHub. --- src/test/java/org/apache/commons/io/ThreadMonitorTestCase.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/test/java/org/apache/commons/io/ThreadMonitorTestCase.java b/src/test/java/org/apache/commons/io/ThreadMonitorTestCase.java index 3be1ba2..4d49645 100644 --- a/src/test/java/org/apache/commons/io/ThreadMonitorTestCase.java +++ b/src/test/java/org/apache/commons/io/ThreadMonitorTestCase.java @@ -48,7 +48,6 @@ public class ThreadMonitorTestCase { */ @Test public void testNoTimeout() { - // timeout = -1 try { final Thread monitor = ThreadMonitor.start(Duration.ofMillis(-1)); @@ -77,7 +76,7 @@ public class ThreadMonitorTestCase { public void testTimeout() { try { final Thread monitor = ThreadMonitor.start(Duration.ofMillis(100)); - TestUtils.sleep(200); + TestUtils.sleep(400); ThreadMonitor.stop(monitor); fail("Expected InterruptedException"); } catch (final InterruptedException e) {