You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/06/27 16:41:02 UTC

[GitHub] [camel] essobedo commented on a diff in pull request #7903: (chores) camel-jms: removed a few Thread.sleep in tests

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


##########
components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsMultipleConsumersTest.java:
##########
@@ -42,7 +45,7 @@ public void configure() {
         context.start();
 
         // give it a bit time to setup both topic listeners
-        Thread.sleep(2000);
+        Awaitility.await().atMost(2, TimeUnit.SECONDS).until(context::isStarted);

Review Comment:
   After `context.start()`, `context.isStarted()` should return `true`, right? If so I guess it is a no op



-- 
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-unsubscribe@camel.apache.org

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