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 c23fbecf3b06514ec8b82cb9407be3772614dffd Author: Andriy Redko <[email protected]> AuthorDate: Fri Aug 23 08:01:21 2024 -0400 Fix org.apache.cxf.ws.discovery.WSDiscoveryClientTest.testMultiResponses (cherry picked from commit ad9ba4313f31067e41d55d22fd148aeec118ee90) (cherry picked from commit 24b8a14e48c715631fb578b1b5f7fe0548e1941d) --- .../java/org/apache/cxf/ws/discovery/WSDiscoveryClientTest.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 cff0eaccad..2a1d3d3471 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 @@ -72,7 +72,8 @@ public final class WSDiscoveryClientTest { if (ni.supportsMulticast() && ni.isUp()) { for (InterfaceAddress ia : ni.getInterfaceAddresses()) { if (ia.getAddress() instanceof java.net.Inet4Address && !ia.getAddress().isLoopbackAddress() - && !ni.getDisplayName().startsWith("vnic")) { + && !ni.getDisplayName().startsWith("vnic") + && !ni.getDisplayName().startsWith("tailscale")) { possibles.add(ni); System.out.println("Found possible network interface:" + ni.getDisplayName()); } @@ -81,8 +82,8 @@ public final class WSDiscoveryClientTest { } } for (NetworkInterface p : possibles) { - if (!p.isPointToPoint()) { - System.out.println("Using non-p2p network interface:" + p.getDisplayName()); + if (p.isPointToPoint()) { + System.out.println("Using p2p network interface:" + p.getDisplayName()); return p; } }
