Skip to content

Commit f9db450

Browse files
author
Gary Gregory
committed
Break test method into two.
1 parent 19df5f9 commit f9db450

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public void testCompletedWithoutTimeout() {
4747
* Test No timeout.
4848
*/
4949
@Test
50-
public void testNoTimeout() {
50+
public void testNoTimeoutMinus1() {
5151
// timeout = -1
5252
try {
5353
final Thread monitor = ThreadMonitor.start(Duration.ofMillis(-1));
@@ -57,7 +57,13 @@ public void testNoTimeout() {
5757
} catch (final Exception e) {
5858
fail("Timeout -1, threw " + e);
5959
}
60+
}
6061

62+
/**
63+
* Test No timeout.
64+
*/
65+
@Test
66+
public void testNoTimeoutZero() {
6167
// timeout = 0
6268
try {
6369
final Thread monitor = ThreadMonitor.start(Duration.ZERO);

0 commit comments

Comments
 (0)