We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69e3b81 commit 19df5f9Copy full SHA for 19df5f9
1 file changed
src/test/java/org/apache/commons/io/ThreadMonitorTestCase.java
@@ -48,7 +48,6 @@ public void testCompletedWithoutTimeout() {
48
*/
49
@Test
50
public void testNoTimeout() {
51
-
52
// timeout = -1
53
try {
54
final Thread monitor = ThreadMonitor.start(Duration.ofMillis(-1));
@@ -77,7 +76,7 @@ public void testNoTimeout() {
77
76
public void testTimeout() {
78
79
final Thread monitor = ThreadMonitor.start(Duration.ofMillis(100));
80
- TestUtils.sleep(200);
+ TestUtils.sleep(400);
81
ThreadMonitor.stop(monitor);
82
fail("Expected InterruptedException");
83
} catch (final InterruptedException e) {
0 commit comments