Skip to content

Commit f0d1c78

Browse files
committed
Split ThreadUtilsTest.testJoinDuration()
1 parent dc814ee commit f0d1c78

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/test/java/org/apache/commons/lang3/ThreadUtilsTest.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,13 @@ void testInvalidThreadId() {
186186

187187
@Test
188188
void testJoinDuration() throws InterruptedException {
189-
ThreadUtils.join(new Thread(), Duration.ZERO);
190189
ThreadUtils.join(new Thread(), Duration.ofMillis(1));
190+
ThreadUtils.join(new Thread(), Duration.ofMillis(2));
191+
}
192+
193+
@Test
194+
void testJoinDurationZero() throws InterruptedException {
195+
ThreadUtils.join(new Thread(), Duration.ZERO);
191196
}
192197

193198
@Test

0 commit comments

Comments
 (0)