davsclaus commented on code in PR #31114:
URL: https://github.com/apache/camel/pull/31114#discussion_r4740266166


##########
components/camel-zookeeper-master/src/test/java/org/apache/camel/component/zookeepermaster/policy/MasterRoutePolicyRouteLifecycleTest.java:
##########
@@ -390,9 +391,15 @@ private static boolean isConsumerStarted(CamelContext 
context) {
         return ServiceHelper.isStarted(consumer);
     }
 
+    // a consumer that is starting (ServiceHelper.isStarted) may not be ready 
yet: the seda consumer replaces the stale
+    // queue of its endpoint when it starts, so a message sent before it has 
started may be lost
+    private static boolean isConsumerFullyStarted(CamelContext context) {
+        return context.getRoute(ROUTE).getConsumer() instanceof 
StatefulService consumer && consumer.isStarted();

Review Comment:
   No change needed: this is a documentation-only nit on a test helper, and the 
behaviour it describes (a null consumer fails the match, so `awaitConsuming` 
retries) is already correct.
   
   _Claude Code on behalf of davsclaus_



-- 
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]

Reply via email to