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 19df5f9 commit f9db450Copy full SHA for f9db450
1 file changed
src/test/java/org/apache/commons/io/ThreadMonitorTestCase.java
@@ -47,7 +47,7 @@ public void testCompletedWithoutTimeout() {
47
* Test No timeout.
48
*/
49
@Test
50
- public void testNoTimeout() {
+ public void testNoTimeoutMinus1() {
51
// timeout = -1
52
try {
53
final Thread monitor = ThreadMonitor.start(Duration.ofMillis(-1));
@@ -57,7 +57,13 @@ public void testNoTimeout() {
57
} catch (final Exception e) {
58
fail("Timeout -1, threw " + e);
59
}
60
+ }
61
62
+ /**
63
+ * Test No timeout.
64
+ */
65
+ @Test
66
+ public void testNoTimeoutZero() {
67
// timeout = 0
68
69
final Thread monitor = ThreadMonitor.start(Duration.ZERO);
0 commit comments