gnodet opened a new pull request, #24589: URL: https://github.com/apache/camel/pull/24589
## Summary _Claude Code on behalf of gnodet_ Fix flaky `JmsAddAndRemoveRouteManagementIT` test (14% failure rate on Develocity — 45 failures out of 323 runs). **Root cause:** Race condition between route Started status and JMS consumer readiness. After `addRoutes()`, thread pool registration in JMX does not guarantee the JMS consumer has subscribed to the broker. On slow CI environments, the message sent immediately after `addRoutes()` may sit in the queue while the consumer is still subscribing, and `MockEndpoint`'s default 10-second wait times out. **Fix:** - Wait for `ServiceStatus.Started` via Awaitility after the thread pool check — this is a stronger readiness signal than JMX thread pool registration alone - Increase `MockEndpoint.setResultWaitTime()` to 30 seconds to accommodate the asynchronous JMS consumer subscription on slow CI **JIRA:** [CAMEL-23980](https://issues.apache.org/jira/browse/CAMEL-23980) ## Test plan - [x] Verified test compiles and passes locally - [x] Post-fix 100x validation run (in progress) - [ ] CI passes -- 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]
