Guillaume Nodet created CAMEL-24039:
---------------------------------------
Summary: Fix flaky core tests - seda, scheduler, and redelivery
tests (batch 7)
Key: CAMEL-24039
URL: https://issues.apache.org/jira/browse/CAMEL-24039
Project: Camel
Issue Type: Bug
Components: camel-core
Reporter: Guillaume Nodet
Several core tests are flaky because they use the deprecated
assertMockEndpointsSatisfied() method which has a default 10-second timeout
that can be too short on loaded CI systems.
Affected tests:
- NotAllowRedeliveryWhileStoppingDeadLetterChannelTest
- NotAllowRedeliveryWhileStoppingTest
- SedaMultipleConsumersTest
- SedaAsyncProducerTest
- TwoSchedulerConcurrentTasksOneRouteTest
- TwoSchedulerConcurrentTasksTest
- SchedulerRouteTest
- SchedulerRepeatCountTest
The fix replaces assertMockEndpointsSatisfied() with
MockEndpoint.assertIsSatisfied(context, 30, TimeUnit.SECONDS) to provide
explicit, generous timeouts.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)