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

   ## Description
   
   `Camel1145RouteTest` is flaky: the port picked in `@BeforeAll` can be taken 
by another process before Undertow binds it (`BindException: Address already in 
use`). On rerun the test then fails immediately with `ApplicationContext 
failure threshold (1) exceeded`, because Spring refuses to reload a context 
after its first load failure.
   
   This adds `spring.test.context.failure.threshold=3` in 
`camel-cxf-spring-soap` test resources, the same approach already used in 
`camel-undertow` (CAMEL-26628), so a rerun reloads the context and gets a new 
free port.
   
   Note: the property applies to all Spring-based tests of the module.
   
   ## Target
   
   - [x] I checked that the commit is targeting the correct branch (Camel 4 
uses the `main` branch)
   
   ## Tracking
   
   - [x] If this is a large change, bug fix, or code improvement, I checked 
there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL-27505) 
filed for the change
   
   ## Apache Camel coding standards and style
   
   - [x] I checked that each commit in the pull request has a meaningful 
subject line and body.
   
   ---
   _Claude... correction: IBM Bob (AI) on behalf of Aurélien Pupier (apupier)_


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