This is an automated email from the ASF dual-hosted git repository.

apupier pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new d13663210041 CAMEL-27505: camel-cxf-spring-soap - allow Spring context 
reload on rerun to fix flaky Camel1145RouteTest
d13663210041 is described below

commit d136632100415704c8f901333bd04f2210b8c5f1
Author: AurĂ©lien Pupier <[email protected]>
AuthorDate: Tue Nov 24 09:10:13 2026 +0100

    CAMEL-27505: camel-cxf-spring-soap - allow Spring context reload on rerun 
to fix flaky Camel1145RouteTest
    
    Co-authored-by: IBM Bob 2.2.1
    Signed-off-by: AurĂ©lien Pupier <[email protected]>
---
 .../src/test/resources/spring.properties            | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git 
a/components/camel-cxf/camel-cxf-spring-soap/src/test/resources/spring.properties
 
b/components/camel-cxf/camel-cxf-spring-soap/src/test/resources/spring.properties
new file mode 100644
index 000000000000..01a190ff7407
--- /dev/null
+++ 
b/components/camel-cxf/camel-cxf-spring-soap/src/test/resources/spring.properties
@@ -0,0 +1,21 @@
+## ---------------------------------------------------------------------------
+## Licensed to the Apache Software Foundation (ASF) under one or more
+## contributor license agreements.  See the NOTICE file distributed with
+## this work for additional information regarding copyright ownership.
+## The ASF licenses this file to You under the Apache License, Version 2.0
+## (the "License"); you may not use this file except in compliance with
+## the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+## ---------------------------------------------------------------------------
+
+# By default Spring refuses to reload an ApplicationContext after its first 
load failure.
+# The Spring tests pick a free port when the context is created, which can 
occasionally collide with
+# another process (BindException), so allow the context to be reloaded (with a 
new port) on test reruns.
+spring.test.context.failure.threshold=3

Reply via email to