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 d553b261c0dc2f9059dc8d75d09d1c29f3cfc921
Author: Andriy Redko <[email protected]>
AuthorDate: Thu Aug 22 17:38:51 2024 -0400

    Attempt to fix 
org.apache.cxf.ws.discovery.WSDiscoveryClientTest.testMultiResponses
    
    (cherry picked from commit e6e4c8c8dcf36c437661760b36b37e21878b1c3e)
    (cherry picked from commit a21c01042af7424c61b7d2ce342669efcc78d5e7)
---
 .../test/java/org/apache/cxf/ws/discovery/WSDiscoveryClientTest.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 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 c6c46c6fcf..b2e5b32ef5 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
@@ -103,8 +103,8 @@ public final class WSDiscoveryClientTest {
         int count = 0;
         if (interfaces != null) {
             while (interfaces.hasMoreElements()) {
-                NetworkInterface networkInterface = interfaces.nextElement();
-                if (!networkInterface.isUp() || networkInterface.isLoopback()) 
{
+                NetworkInterface ni = interfaces.nextElement();
+                if (!ni.isUp() || ni.isLoopback() || !ni.supportsMulticast()) {
                     continue;
                 }
                 count++;

Reply via email to