essobedo commented on code in PR #9266:
URL: https://github.com/apache/camel/pull/9266#discussion_r1091785795


##########
core/camel-core/src/test/java/org/apache/camel/component/seda/SedaDefaultDiscardWhenFullTest.java:
##########
@@ -37,10 +40,8 @@ public void testDiscardWhenFull() throws Exception {
         // start route
         context.getRouteController().startRoute("foo");
 
-        // wait until  at least 1 message has been consumed
-        while (mock.getReceivedCounter() < 1) {
-            Thread.sleep(100);
-        }
+        // wait until at least 1 message has been consumed
+        Awaitility.await().atMost(Duration.ofSeconds(10)).until(() -> 
mock.getReceivedCounter() >= 1);

Review Comment:
   That's weird, I don't see any reason why it will be more stable this way



-- 
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: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to