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

   ## Summary
   
   Fix flaky `VertxWebsocketHandshakeHeadersTest` (5.1% failure rate on 
[Develocity CI](https://develocity.apache.org) — 8 failed, 5 flaky out of 254 
runs).
   
   **Root cause:** Mock expectations were set up _after_ `context.start()`, 
creating a race condition where WebSocket messages could arrive before 
expectations were configured. The `CountDownLatch` could also complete before 
`MockEndpoint` had processed both messages.
   
   **Fix:**
   - Move `MockEndpoint` expectations before `context.start()` so they're ready 
when messages arrive
   - Replace `CountDownLatch` + separate `assertIsSatisfied()` with 
`MockEndpoint.assertIsSatisfied(context, 30, TimeUnit.SECONDS)` — a single 
latch-based timed assertion that's both simpler and more reliable
   
   _Claude Code on behalf of gnodet_
   
   Co-authored-by: Claude Opus 4.6 <[email protected]>


-- 
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