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/06 14:19:00 UTC

[jira] [Resolved] (CAMEL-23888) Fix flaky camel-platform-http-vertx surefire tests

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

Guillaume Nodet resolved CAMEL-23888.
-------------------------------------
    Resolution: Fixed

> Fix flaky camel-platform-http-vertx surefire tests
> --------------------------------------------------
>
>                 Key: CAMEL-23888
>                 URL: https://issues.apache.org/jira/browse/CAMEL-23888
>             Project: Camel
>          Issue Type: Test
>          Components: camel-platform-http-vertx
>            Reporter: Guillaume Nodet
>            Priority: Minor
>             Fix For: 4.22.0
>
>
> Several tests in camel-platform-http-vertx fail intermittently during CI (maven-surefire-plugin), observed failing on JDK 25.
> Four distinct flaky patterns were identified and fixed:
> 1. *VertxPlatformEventNotifierTest* — Event notifications fire asynchronously from the Vert.x event loop. Assertions ran before events were recorded. Fixed by using Awaitility polling and a CopyOnWriteArrayList for thread safety.
> 2. *VertxPlatformHttpSharedVertxTest* — Used a CountDownLatch with a tight 1-second timeout to verify the shared Vertx instance was not closed. Replaced with Awaitility polling with a 5-second timeout.
> 3. *VertxPlatformHttpProxyTest* — Used static RestAssured.port which can race with other tests setting it. Switched to using camelPort.getPort() directly.
> 4. *VertxPlatformHttpOAuthProfileTest* — Race condition where the response body handler was registered after the response callback completed, by which time the body data could be discarded. Fixed by registering the body handler inside the response onSuccess callback.



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