gnodet opened a new pull request, #24618: URL: https://github.com/apache/camel/pull/24618
## Summary - Replace the low-level Vert.x `HttpClient` with `RestAssured` in the `rejectsMissingBearerTokenBeforeBodyHandler` test method (consistent with the other three tests in this class) - The Vert.x client test used `sendHead()` with `Content-Length: 1024` to send only HTTP headers without a body; the server correctly rejected with 401, but the response body "Unauthorized" was sometimes received as empty by the client due to a race condition in Vert.x response body delivery on half-open connections - This produced intermittent `expected: <Unauthorized> but was: <>` failures (7% failure rate -- 7 failed, 21 flaky out of 247 CI runs in the last 2 weeks) ## Test plan - [x] `mvn test -pl components/camel-platform-http-vertx -Dtest=VertxPlatformHttpOAuthProfileTest` passes (4/4 tests, 0 failures) - [x] Verified stability with 5 consecutive local runs (all pass) - [x] Code formatted with `mvn formatter:format impsort:sort` _Claude Code on behalf of gnodet_ 🤖 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]
