BAEL-7001: small fix
This commit is contained in:
parent
210eaf2c0b
commit
5b4fc0d6f3
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue