You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2023/02/15 10:09:26 UTC

[cxf] 01/04: Try to fix ws-discovery test on MacOS with vpn turned on

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

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

commit 73a66684b95eaf304ab91e87c8ce22b024829220
Author: Daniel Kulp <da...@kulp.com>
AuthorDate: Wed Feb 15 10:36:25 2023 +0100

    Try to fix ws-discovery test on MacOS with vpn turned on
---
 .../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 aa8f8684a9..8b520d3574 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
@@ -73,6 +73,11 @@ public final class WSDiscoveryClientTest {
                 }
             }
         }
+        for (NetworkInterface p : possibles) {
+            if (p.isPointToPoint()) {
+                return p;
+            }
+        }
         return possibles.isEmpty() ? null : possibles.get(possibles.size() - 1);
     }
 
@@ -142,7 +147,6 @@ public final class WSDiscoveryClientTest {
             }
         }).start();
 
-
         Bus bus = BusFactory.newInstance().createBus();
         WSDiscoveryClient c = new WSDiscoveryClient(bus);
         c.setVersion10();