gnodet commented on code in PR #24418:
URL: https://github.com/apache/camel/pull/24418#discussion_r3524537559
##########
components/camel-lra/src/test/java/org/apache/camel/service/lra/LRAFailuresIT.java:
##########
@@ -46,15 +49,17 @@ public void testCompletionAfterFailures() throws Exception {
MockEndpoint complete = getMockEndpoint("mock:complete");
complete.expectedMessageCount(1);
- complete.setResultWaitTime(20000);
MockEndpoint end = getMockEndpoint("mock:end");
end.expectedBodiesReceived("hello");
sendBody("direct:saga-complete", "hello");
- complete.assertIsSatisfied();
- end.assertIsSatisfied();
+ await().atMost(20, TimeUnit.SECONDS)
+ .untilAsserted(() -> {
+ complete.assertIsSatisfied();
+ end.assertIsSatisfied();
+ });
Review Comment:
Addressed in 01ab647 — switched to polling getReceivedCounter()
(non-blocking) for both mocks, then assertIsSatisfied() once at the end.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]