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

   # Description
   
   Fixes flaky failure in 
`JettyAsyncContinuationTimeoutTest.testJettyAsyncTimeout`.
   
   The test previously asserted `taken < 4500` ms when expecting a 3000 ms 
continuation timeout against a 6000 ms delayed backend task. Under CI load / 
CPU contention, the client-measured time could reach 4000–6300 ms, failing the 
strict upper-bound check even though the continuation timeout (504 response) 
correctly triggered before the backend task completed.
   
   Replaced the wall-clock assertion with causal verification 
(`mock.getReceivedCounter() == 0` upon receiving the 504 exception) to verify 
that timeout occurred before the backend route finished, followed by 
`MockEndpoint.assertIsSatisfied(context)` to verify eventual completion.
   
   # Tracking
   https://issues.apache.org/jira/browse/CAMEL-27279
   
   _IBM Bob on behalf of apupier_


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