gnodet opened a new pull request, #24448: URL: https://github.com/apache/camel/pull/24448
## Summary Replace `Thread.sleep` calls with Awaitility-based assertions and Camel-idiomatic alternatives across 5 test classes in `camel-reactive-streams`: - **DelayedMonoPublisherTest** (5 sleeps): Use `ScheduledExecutorService.schedule()` for delayed actions and Awaitility `await().until()` for condition-based waiting - **BackpressureStrategyTest** (6 sleeps): Use `AtomicInteger` counter with Awaitility to reliably wait for timer events, replacing fixed sleep durations - **BackpressureSubscriberTest** (3 sleeps): Replace `Thread.sleep` in route processors with Camel's `delay()` EIP for simulating processing time - **BackpressurePublisherRoutePolicyTest** (2 sleeps): Use Awaitility `untilAsserted()` to wait for route policy state changes - **BasicPublisherTest** (1 sleep): Remove unnecessary sleep between dispose/subscribe Also adds the Awaitility test dependency to the module's `pom.xml`. ## Test plan - [x] All 65 tests in `camel-reactive-streams` pass locally - [x] No remaining `Thread.sleep` calls in the 5 affected test files - [ ] CI build passes _Claude Code on behalf of Guillaume Nodet_ 🤖 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]
