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 410a7aedabfc85a99f605138ad717b6bd3a51c07 Author: Andriy Redko <[email protected]> AuthorDate: Sat Jul 8 19:02:23 2023 -0400 Attempt to fix org.apache.cxf.ws.discovery.WSDiscoveryClientTest.testMultiResponses test case on Windows (cherry picked from commit 1fe1bf45a28127d41f0ae38e0b926c3158dcb00a) --- .../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 845e1588ec..c6c46c6fcf 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 @@ -53,6 +53,9 @@ import org.apache.cxf.ws.discovery.wsdl.ScopesType; import org.junit.Assert; import org.junit.Test; +import static org.hamcrest.CoreMatchers.not; +import static org.hamcrest.CoreMatchers.startsWith; +import static org.junit.Assume.assumeThat; /** * @@ -86,6 +89,9 @@ public final class WSDiscoveryClientTest { @Test public void testMultiResponses() throws Exception { + assumeThat("The UDP multicast is disabled on Windows by default", + System.getProperties().getProperty("os.name"), not(startsWith("Windows"))); + // Disable the test on Redhat Enterprise Linux which doesn't enable the UDP broadcast by default if ("Linux".equals(System.getProperties().getProperty("os.name")) && System.getProperties().getProperty("os.version").indexOf("el") > 0) {
