Skip to content

Commit

Permalink
Attempt to stabilize test on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
marcphilipp committed Sep 17, 2022
1 parent 8160378 commit 352d06b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ void timeoutExceededInSeparateThread() {
Throwable failure = execution.getTerminationInfo().getExecutionResult().getThrowable().orElseThrow();
assertThat(failure) //
.isInstanceOf(TimeoutException.class) //
.hasMessage("testMethod() timed out after 10 milliseconds");
.hasMessage("testMethod() timed out after 100 milliseconds");
assertThat(failure.getCause()) //
.hasMessageStartingWith("Execution timed out in ") //
.hasStackTraceContaining(TimeoutExceedingSeparateThreadTestCase.class.getName() + ".testMethod");
Expand Down Expand Up @@ -721,7 +721,7 @@ void testMethod() throws InterruptedException {

static class TimeoutExceedingSeparateThreadTestCase {
@Test
@Timeout(value = 10, unit = MILLISECONDS, threadMode = SEPARATE_THREAD)
@Timeout(value = 100, unit = MILLISECONDS, threadMode = SEPARATE_THREAD)
void testMethod() throws InterruptedException {
Thread.sleep(1000);
}
Expand Down

0 comments on commit 352d06b

Please sign in to comment.