You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Guillaume Nodet (Jira)" <ji...@apache.org> on 2026/07/12 08:16:00 UTC

[jira] [Updated] (CAMEL-24019) Fix flaky VertxWebsocketHandshakeHeadersTest

     [ https://issues.apache.org/jira/browse/CAMEL-24019?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet updated CAMEL-24019:
------------------------------------
    Fix Version/s: 4.22.0

> Fix flaky VertxWebsocketHandshakeHeadersTest
> --------------------------------------------
>
>                 Key: CAMEL-24019
>                 URL: https://issues.apache.org/jira/browse/CAMEL-24019
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-vertx-websocket
>            Reporter: Guillaume Nodet
>            Assignee: Guillaume Nodet
>            Priority: Major
>             Fix For: 4.22.0
>
>
> The VertxWebsocketHandshakeHeadersTest has a 5.1% flaky/failure rate on Develocity CI (8 failed, 5 flaky out of 254 runs in the last 12 days).
> Root cause: Mock expectations are set up after context.start(), creating a race condition where messages can arrive before expectations are configured. Also uses a CountDownLatch that can complete before MockEndpoint has processed both messages.
> Fix: Move mock expectations before context.start() and use MockEndpoint.assertIsSatisfied(context, 30, TimeUnit.SECONDS) instead of CountDownLatch.
> _Claude Code on behalf of gnodet_



--
This message was sent by Atlassian Jira
(v8.20.10#820010)