Skip to content

Commit 352d06b

Browse files
committed
Attempt to stabilize test on Windows
1 parent 8160378 commit 352d06b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ void timeoutExceededInSeparateThread() {
352352
Throwable failure = execution.getTerminationInfo().getExecutionResult().getThrowable().orElseThrow();
353353
assertThat(failure) //
354354
.isInstanceOf(TimeoutException.class) //
355-
.hasMessage("testMethod() timed out after 10 milliseconds");
355+
.hasMessage("testMethod() timed out after 100 milliseconds");
356356
assertThat(failure.getCause()) //
357357
.hasMessageStartingWith("Execution timed out in ") //
358358
.hasStackTraceContaining(TimeoutExceedingSeparateThreadTestCase.class.getName() + ".testMethod");
@@ -721,7 +721,7 @@ void testMethod() throws InterruptedException {
721721

722722
static class TimeoutExceedingSeparateThreadTestCase {
723723
@Test
724-
@Timeout(value = 10, unit = MILLISECONDS, threadMode = SEPARATE_THREAD)
724+
@Timeout(value = 100, unit = MILLISECONDS, threadMode = SEPARATE_THREAD)
725725
void testMethod() throws InterruptedException {
726726
Thread.sleep(1000);
727727
}

0 commit comments

Comments
 (0)