Skip to content

Commit

Permalink
stabilize AskWithRetryTest
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch.io>
  • Loading branch information
thjaeckle committed May 6, 2022
1 parent 1e42fd8 commit 51f73a3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ public void ensureRetryStrategyFixedDelayDoesRetryOnAskTimeoutUntilFailed() {

expectMsg(ASK_MESSAGE);
for (int i = 0; i < retryAttempts; i++) {
expectMsg(fixedDelay.plus(askTimeout.multipliedBy(3 + i)), ASK_MESSAGE);
expectNoMessage(fixedDelay.minus(askTimeout.multipliedBy(3)));
expectMsg(fixedDelay.plus(askTimeout.multipliedBy(5 + i)), ASK_MESSAGE);
expectNoMessage(fixedDelay.minus(askTimeout.multipliedBy(5)));
}
expectNoMessage(DEFAULT_NO_MESSAGE_EXPECTATION_DURATION);

Expand Down

0 comments on commit 51f73a3

Please sign in to comment.