BAEL-7001: small fix

This commit is contained in:
emanueltrandafir1993 2023-10-23 18:13:35 +02:00
parent 210eaf2c0b
commit 5b4fc0d6f3
1 changed files with 2 additions and 1 deletions

View File

@ -41,7 +41,8 @@ class RetryCompletableFutureUnitTest {
CompletableFuture<Integer> result = retryTask(codeToRun, 3);
assertThatThrownBy(result::join).isInstanceOf(CompletionException.class)
assertThatThrownBy(result::join)
.isInstanceOf(CompletionException.class)
.hasMessageContaining("IllegalStateException: Task failed after 3 attempts");
}