This is an automated email from the ASF dual-hosted git repository. reta pushed a commit to branch 3.5.x-fixes in repository https://gitbox.apache.org/repos/asf/cxf.git
commit dcbb8e8cb04baa76a81e400ce55038e7965a09f3 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 (cherry picked from commit 924e577f6e29bd8b9c127c99be83bc02b996dd28) --- .../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 859eb2add0..168b2f25c8 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 @@ -82,6 +82,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 {
