Skip to content

Commit 5ad402c

Browse files
committed
Check that thread is not already interrupted
1 parent 6a2b997 commit 5ad402c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

junit-jupiter-engine/src/test/java/org/junit/jupiter/api/AssertTimeoutAssertionsTests.java

+1
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ private void nap() throws InterruptedException {
315315

316316
private void waitForInterrupt() {
317317
try {
318+
assertFalse(Thread.interrupted(), "Already interrupted");
318319
new CountDownLatch(1).await();
319320
}
320321
catch (InterruptedException ignore) {

0 commit comments

Comments
 (0)