Skip to content

Commit e3b7c53

Browse files
committed
Reinstate test
1 parent ef8f2c2 commit e3b7c53

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

junit-jupiter-engine/src/test/java/org/junit/jupiter/engine/extension/SeparateThreadTimeoutInvocationTest.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ void throwsTimeoutException() {
4747

4848
assertThatThrownBy(invocation::proceed) //
4949
.hasMessage("method() timed out after " + PREEMPTIVE_TIMEOUT_MILLIS + " milliseconds") //
50-
.isInstanceOf(TimeoutException.class);
50+
.isInstanceOf(TimeoutException.class) //
51+
.hasRootCauseMessage("Execution timed out in thread " + threadName.get());
5152
}
5253

5354
@Test

0 commit comments

Comments
 (0)