atiaomar1978-hub opened a new pull request, #25334:
URL: https://github.com/apache/camel/pull/25334

   ## Summary
   
   Fixes [CAMEL-24026](https://issues.apache.org/jira/browse/CAMEL-24026): 
`XsltFromFileExceptionTest` is flaky on slow CI when the file consumer has not 
finished before assertions run.
   
   **Why #24625 was reverted:** reordering to wait on `oneExchangeDone` first 
still failed — the default 10s notify latch timed out (`Exchange should have 
completed` was false). Simply swapping assertion order was insufficient.
   
   **This fix (different approach):**
   - Use `assertMockEndpointsSatisfied(30, SECONDS)` so mock waits generously 
for the file consumer route to complete
   - Poll file move completion with Awaitility (`ok/` / `error/` directories) 
instead of `oneExchangeDone`
   - Drop reliance on the global `oneExchangeDone` notify latch, which races 
with producer vs consumer exchanges
   
   ## Test plan
   
   - [x] `./mvnw -pl core/camel-core -am test -Dtest=XsltFromFileExceptionTest`
   
   ---
   _AI-generated PR description on behalf of atiaomar1978-hub_


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