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

   [CAMEL-22527](https://issues.apache.org/jira/browse/CAMEL-22527)
   
   Fixes two flaky tests in `camel-jetty`:
   
   **HttpRouteTest.testEchoEndpoint**
   
   The `enableSessionSupport` method in `JettyHttpComponent` threw 
`IllegalStateException` when session support was requested on a Jetty server 
that was already started (e.g., when another route on the same port was 
connected first). Instead of throwing, the fix restarts the server to add 
session support — matching the existing pattern for handler changes (lines 
377-382 in the same file).
   
   **JettyFailoverRoundRobinTest.testJettyFailoverRoundRobin**
   
   The test assumed the failover round-robin load balancer always starts at 
index 0, but the starting index can vary depending on the `AtomicInteger` 
counter state. The fix verifies that both good endpoints are reached across two 
requests (confirming both failover and round-robin behavior) without assuming a 
specific starting index.


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