gnodet commented on code in PR #24418:
URL: https://github.com/apache/camel/pull/24418#discussion_r3525474715
##########
components/camel-lra/src/test/java/org/apache/camel/service/lra/LRAFailuresIT.java:
##########
@@ -33,11 +36,11 @@ public void testCompensationAfterFailures() throws
Exception {
MockEndpoint compensate = getMockEndpoint("mock:compensate");
compensate.expectedMessageCount(1);
- compensate.setResultWaitTime(20000);
sendBody("direct:saga-compensate", "hello");
- compensate.assertIsSatisfied();
+ await().atMost(20, TimeUnit.SECONDS)
+ .untilAsserted(compensate::assertIsSatisfied);
Review Comment:
Good catch — fixed in 01ab647: now polling on getReceivedCounter()
(non-blocking) instead of untilAsserted(assertIsSatisfied), then calling
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]