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);
|
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");
|
.hasMessageContaining("IllegalStateException: Task failed after 3 attempts");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user