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

Claus Ibsen updated CAMEL-23888:
--------------------------------
    Issue Type: Test  (was: Bug)

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

Reply via email to