Skip to content

Commit

Permalink
Fix timing in the AsyncRabbitTemplateTests
Browse files Browse the repository at this point in the history
  • Loading branch information
artembilan committed Oct 4, 2024
1 parent 949bf52 commit 82bed3f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,8 @@ private Message checkMessageResult(CompletableFuture<Message> future, String exp
});
assertThat(cdl.await(10, TimeUnit.SECONDS)).isTrue();
assertThat(new String(resultRef.get().getBody())).isEqualTo(expected);
assertThat(TestUtils.getPropertyValue(future, "timeoutTask", Future.class).isCancelled()).isTrue();
await().untilAsserted(() ->
assertThat(TestUtils.getPropertyValue(future, "timeoutTask", Future.class).isCancelled()).isTrue());
return resultRef.get();
}

Expand Down

0 comments on commit 82bed3f

Please sign in to comment.