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

reta pushed a commit to branch 3.6.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git

commit 924e577f6e29bd8b9c127c99be83bc02b996dd28
Author: Andriy Redko <[email protected]>
AuthorDate: Thu Oct 3 20:38:59 2024 -0400

    Attempt to fix 
org.apache.cxf.ws.discovery.WSDiscoveryClientTest.testMultiResponses by 
favoring docker interface if available
---
 .../java/org/apache/cxf/ws/discovery/WSDiscoveryClientTest.java     | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git 
a/services/ws-discovery/ws-discovery-api/src/test/java/org/apache/cxf/ws/discovery/WSDiscoveryClientTest.java
 
b/services/ws-discovery/ws-discovery-api/src/test/java/org/apache/cxf/ws/discovery/WSDiscoveryClientTest.java
index 2a1d3d3471..ea6ddf6e8e 100644
--- 
a/services/ws-discovery/ws-discovery-api/src/test/java/org/apache/cxf/ws/discovery/WSDiscoveryClientTest.java
+++ 
b/services/ws-discovery/ws-discovery-api/src/test/java/org/apache/cxf/ws/discovery/WSDiscoveryClientTest.java
@@ -87,6 +87,12 @@ public final class WSDiscoveryClientTest {
                 return p;
             }
         }
+        for (NetworkInterface p : possibles) {
+            if (p.getDisplayName().startsWith("docker")) {
+                System.out.println("Using docker network interface:" + 
p.getDisplayName());
+                return p;
+            }
+        }
         if (possibles.isEmpty())  {
             return null;
         } else {

Reply via email to