atiaomar1978-hub commented on PR #25334: URL: https://github.com/apache/camel/pull/25334#issuecomment-5187145988
## Fix summary Addresses [CAMEL-24026](https://issues.apache.org/jira/browse/CAMEL-24026) — flaky `XsltFromFileExceptionTest`. ### Why #24625 was reverted PR #24625 reordered to wait on `oneExchangeDone` before mock assertions. It was reverted in #24945 because CI still saw failures (`Exchange should have completed` was false). Simply swapping order was not enough. ### Why this fix is different | Approach | Problem | |---|---| | Original | 10s mock wait before file consumer finishes | | #24625 | `oneExchangeDone` unreliable — producer write to `fileUri()` can satisfy the global `whenDone(1)` notify **before** the consumer route runs | | **This PR** | 30s `assertMockEndpointsSatisfied` for consumer route + Awaitility polling for file move to `ok/`/`error/` | ### Verified ```bash ./mvnw -pl core/camel-core -am test -Dtest=XsltFromFileExceptionTest ``` --- _AI-generated comment 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]
