Guillaume Nodet created CAMEL-24040:
---------------------------------------

             Summary: Fix flaky tests - timing issues in seda, throttle, 
aggregation, file, and JMS tests (batch 8)
                 Key: CAMEL-24040
                 URL: https://issues.apache.org/jira/browse/CAMEL-24040
             Project: Camel
          Issue Type: Bug
          Components: camel-core, camel-jms
            Reporter: Guillaume Nodet


Several tests are flaky due to tight timeouts that are insufficient on loaded 
CI systems.

Affected tests:
- SedaBlockWhenFullTest: tight setResultWaitTime and 5s assertion timeout
- SedaInOutChainedTimeoutTest: tight 4s time assertion
- ThrottlingExceptionRoutePolicyHalfOpenHandlerSedaTest: tight 5s Awaitility 
timeouts
- DefaultCamelContextSuspendResumeRouteTest: uses 
assertMockEndpointsSatisfied() and tight 1s assertIsSatisfied
- AggregateDiscardOnTimeoutTest: tight 1s mock.await timeout
- FileConsumePollEnrichFileTest: tight 1s pollEnrich timeout
- JmsToJmsTransactedIT: uses no-timeout MockEndpoint.assertIsSatisfied(context) 
and tight 5s consumer.receiveBody
- JmsDeadLetterChannelInOutIT: tight 5s consumer.receiveBody timeout

Fixes include increasing timeouts, replacing deprecated 
assertMockEndpointsSatisfied() with timed assertions, and providing generous 
timeouts for latch-based and receive operations.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to