Revert "CAMEL-24026: Fix flaky XsltFromFileExceptionTest" - #24945
Conversation
This reverts commit 1f8808c.
|
🌟 Thank you for your contribution to the Apache Camel project! 🌟 🐫 Apache Camel Committers, please review the following items:
|
|
with current main: with the revert: |
|
🧪 CI tested the following changed modules:
🔬 Scalpel shadow comparison — Scalpel: 23 tested, 0 compile-only — current: 0 all testedMaveniverse Scalpel detected 23 affected modules (current approach: 0).
|
gnodet
left a comment
There was a problem hiding this comment.
Clean revert — restoring the original test structure makes sense given the fix didn't resolve the flakiness.
The change:
- Reverts #24625 which wrapped `oneExchangeDone.matchesWaitTime()` with `assertTrue()` and reordered it before `assertMockEndpointsSatisfied()`.
- Restores the original pattern: `assertMockEndpointsSatisfied()` first (which already waits internally via its latch), then `oneExchangeDone.matchesWaitTime()` as an additional wait.
One observation (non-blocking):
After the revert, `oneExchangeDone.matchesWaitTime()` is called without using its return value — it serves only as a secondary wait, which is reasonable but could be confusing to future readers. If the flakiness needs another fix attempt, consider using `Awaitility` to wait for the file assertions (`assertFileNotExists` / `assertFileExists`) since the flakiness may stem from file-system timing rather than exchange completion.
LGTM ✅
Claude Code on behalf of gnodet — AI-generated review
Reverts #24625
the issue is still failing sometimes. the error message is less descriptive than before so reverting