gnodet opened a new pull request, #24441:
URL: https://github.com/apache/camel/pull/24441

   ## Summary
   
   - Replace `Thread.sleep(100)` calls (5 occurrences) in `testRestart()` with 
Awaitility-based assertions that wait for the CamelContext to reach the 
expected lifecycle state (`started`, `suspended`, `stopped`) after each 
transition
   - Makes the test deterministic instead of relying on arbitrary fixed-delay 
sleeps that can cause flakiness under load
   
   ## Changes
   
   **File:** 
`components/camel-quartz/src/test/java/org/apache/camel/component/quartz/QuartzNameCollisionTest.java`
   - Added `Awaitility` and `TimeUnit` imports
   - Replaced each `Thread.sleep(100)` with `Awaitility.await().atMost(5, 
TimeUnit.SECONDS).untilAsserted(...)` checking the appropriate context state
   
   ## Test plan
   
   - [x] `mvn test -pl components/camel-quartz -Dtest=QuartzNameCollisionTest` 
— all 5 tests pass
   - [ ] CI pipeline 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]

Reply via email to