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


The following commit(s) were added to refs/heads/master by this push:
     new f9db450  Break test method into two.
f9db450 is described below

commit f9db450e5281bb4845e361d01174b618bb4cf843
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Sep 19 12:19:03 2021 -0400

    Break test method into two.
---
 src/test/java/org/apache/commons/io/ThreadMonitorTestCase.java | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/test/java/org/apache/commons/io/ThreadMonitorTestCase.java 
b/src/test/java/org/apache/commons/io/ThreadMonitorTestCase.java
index 4d49645..e22b052 100644
--- a/src/test/java/org/apache/commons/io/ThreadMonitorTestCase.java
+++ b/src/test/java/org/apache/commons/io/ThreadMonitorTestCase.java
@@ -47,7 +47,7 @@ public class ThreadMonitorTestCase {
      * Test No timeout.
      */
     @Test
-    public void testNoTimeout() {
+    public void testNoTimeoutMinus1() {
         // timeout = -1
         try {
             final Thread monitor = ThreadMonitor.start(Duration.ofMillis(-1));
@@ -57,7 +57,13 @@ public class ThreadMonitorTestCase {
         } catch (final Exception e) {
             fail("Timeout -1, threw " + e);
         }
+    }
 
+    /**
+     * Test No timeout.
+     */
+    @Test
+    public void testNoTimeoutZero() {
         // timeout = 0
         try {
             final Thread monitor = ThreadMonitor.start(Duration.ZERO);

Reply via email to