Skip to content

Commit 19df5f9

Browse files
author
Gary Gregory
committed
Try to fix random build failures on GitHub.
1 parent 69e3b81 commit 19df5f9

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/test/java/org/apache/commons/io/ThreadMonitorTestCase.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ public void testCompletedWithoutTimeout() {
4848
*/
4949
@Test
5050
public void testNoTimeout() {
51-
5251
// timeout = -1
5352
try {
5453
final Thread monitor = ThreadMonitor.start(Duration.ofMillis(-1));
@@ -77,7 +76,7 @@ public void testNoTimeout() {
7776
public void testTimeout() {
7877
try {
7978
final Thread monitor = ThreadMonitor.start(Duration.ofMillis(100));
80-
TestUtils.sleep(200);
79+
TestUtils.sleep(400);
8180
ThreadMonitor.stop(monitor);
8281
fail("Expected InterruptedException");
8382
} catch (final InterruptedException e) {

0 commit comments

Comments
 (0)