This is an automated email from the ASF dual-hosted git repository.

garydgregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git

commit f0d1c78a52b9fa4b080b3918bf605e090ac68649
Author: Gary Gregory <[email protected]>
AuthorDate: Wed May 6 08:11:24 2026 -0400

    Split ThreadUtilsTest.testJoinDuration()
---
 src/test/java/org/apache/commons/lang3/ThreadUtilsTest.java | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/test/java/org/apache/commons/lang3/ThreadUtilsTest.java 
b/src/test/java/org/apache/commons/lang3/ThreadUtilsTest.java
index 9994ace68..d13cd9ca3 100644
--- a/src/test/java/org/apache/commons/lang3/ThreadUtilsTest.java
+++ b/src/test/java/org/apache/commons/lang3/ThreadUtilsTest.java
@@ -186,8 +186,13 @@ void testInvalidThreadId() {
 
     @Test
     void testJoinDuration() throws InterruptedException {
-        ThreadUtils.join(new Thread(), Duration.ZERO);
         ThreadUtils.join(new Thread(), Duration.ofMillis(1));
+        ThreadUtils.join(new Thread(), Duration.ofMillis(2));
+    }
+
+    @Test
+    void testJoinDurationZero() throws InterruptedException {
+        ThreadUtils.join(new Thread(), Duration.ZERO);
     }
 
     @Test

Reply via email to