gnodet opened a new pull request, #24639:
URL: https://github.com/apache/camel/pull/24639

   ## Summary
   
   Fix 8 flaky core tests by replacing `assertMockEndpointsSatisfied()` with 
`MockEndpoint.assertIsSatisfied(context, 30, TimeUnit.SECONDS)` to provide 
explicit, generous timeouts.
   
   **Fixed tests:**
   - `NotAllowRedeliveryWhileStoppingDeadLetterChannelTest`
   - `NotAllowRedeliveryWhileStoppingTest`
   - `SedaMultipleConsumersTest`
   - `SedaAsyncProducerTest`
   - `TwoSchedulerConcurrentTasksOneRouteTest`
   - `TwoSchedulerConcurrentTasksTest`
   - `SchedulerRouteTest`
   - `SchedulerRepeatCountTest`
   
   **Root cause:** The deprecated `assertMockEndpointsSatisfied()` relies on 
the default internal timeout (10 seconds) which can be insufficient on loaded 
CI systems, causing intermittent failures.
   
   **Fix:** Use the explicit timed overload 
`MockEndpoint.assertIsSatisfied(context, 30, TimeUnit.SECONDS)` which provides 
a 30-second latch-based wait — returning immediately when expectations are met 
but allowing enough time under load.
   
   _Claude Code on behalf of gnodet_


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