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

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

commit 9d3cbdb8b30745e1820c7d8a6f904d7b6ca7f08a
Author: Daniel Kulp <d...@kulp.com>
AuthorDate: Wed Feb 15 10:36:25 2023 +0100

    Try to fix ws-discovery test on MacOS with vpn turned on
    
    (cherry picked from commit 73a66684b95eaf304ab91e87c8ce22b024829220)
---
 .../java/org/apache/cxf/ws/discovery/WSDiscoveryClientTest.java     | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

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 b8a313802c..49d4f4fec9 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
@@ -74,6 +74,11 @@ public final class WSDiscoveryClientTest {
                 }
             }
         }
+        for (NetworkInterface p : possibles) {
+            if (p.isPointToPoint()) {
+                return p;
+            }
+        }
         return possibles.isEmpty() ? null : possibles.get(possibles.size() - 
1);
     }
 
@@ -143,7 +148,6 @@ public final class WSDiscoveryClientTest {
             }
         }).start();
 
-
         Bus bus = BusFactory.newInstance().createBus();
         WSDiscoveryClient c = new WSDiscoveryClient(bus);
         c.setVersion10();

Reply via email to