diff --git a/modules/core/src/test/java/org/shakespeareframework/ActorAnswersRetryableTest.java b/modules/core/src/test/java/org/shakespeareframework/ActorAnswersRetryableTest.java index 5cea5513..5b806ee5 100644 --- a/modules/core/src/test/java/org/shakespeareframework/ActorAnswersRetryableTest.java +++ b/modules/core/src/test/java/org/shakespeareframework/ActorAnswersRetryableTest.java @@ -29,7 +29,7 @@ void answersRetryableTest1() { assertThatExceptionOfType(TimeoutException.class) .isThrownBy(() -> actor.checks(retryableQuestion)); - assertThat(called).hasValueGreaterThanOrEqualTo(10); + assertThat(called).hasValueBetween(9, 11); } @Test diff --git a/modules/core/src/test/java/org/shakespeareframework/reporting/Slf4jReporterTest.java b/modules/core/src/test/java/org/shakespeareframework/reporting/Slf4jReporterTest.java index 17781b25..9d0b7550 100644 --- a/modules/core/src/test/java/org/shakespeareframework/reporting/Slf4jReporterTest.java +++ b/modules/core/src/test/java/org/shakespeareframework/reporting/Slf4jReporterTest.java @@ -39,7 +39,7 @@ void test2() { assertThat(output.getOut()) .matches( - "\\d{2}:\\d{2}:\\d{2}\\.\\d{3} \\[[^\\\\]+\\] INFO Logan - Logan does some task ✓" + "\\d{2}:\\d{2}:\\d{2}\\.\\d{3} \\[[^\\\\]+\\] INFO Logan -- Logan does some task ✓" + " (\\d+s)?(