gnodet opened a new pull request, #24444: URL: https://github.com/apache/camel/pull/24444
## Summary _Claude Code on behalf of Guillaume Nodet_ Replace `Thread.sleep` calls with Awaitility-based polling in three camel-ftp test classes to eliminate flaky timing-dependent behavior: - **FtpProducerTempFileExistIssueIT**: Replace 5× `Thread.sleep(500)` with Awaitility file-existence checks before proceeding to the next send operation. Also increase existing assertion timeouts from 500ms to 5s for CI resilience. - **FtpConsumerIdempotentIT**: Remove `Thread.sleep(100)` after initial assertion, replace `Thread.sleep(2000)` with `await().pollDelay(2, SECONDS).atMost(5, SECONDS).untilAsserted(...)` for the negative assertion (verifying idempotent consumer does NOT re-consume a file). - **FtpConsumerIdempotentRefIT**: Same pattern as `FtpConsumerIdempotentIT`. ## Test plan - [x] All 8 tests pass locally (`FtpProducerTempFileExistIssueIT` × 6, `FtpConsumerIdempotentIT` × 1, `FtpConsumerIdempotentRefIT` × 1) - [ ] CI build passes - [x] No `Thread.sleep` calls remain in the modified files - [x] Code formatted with `mvn formatter:format impsort:sort` 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
