Disable multicast tests when buiding on MacOS (#10080)

Multicast tests fail when running on MacOS. So these tests will be disabled when building on macOS based machines.
I did not include the Oracle tests because M4 processors do support the oracle testcontainer based tests.
This commit is contained in:
Glenn Renfro
2025-06-03 13:38:23 -04:00
committed by GitHub
parent 8d7b5f636e
commit 66de5a2c93
2 changed files with 6 additions and 0 deletions

View File

@@ -29,6 +29,8 @@ import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledOnOs;
import org.junit.jupiter.api.condition.OS;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.core.task.SimpleAsyncTaskExecutor;
@@ -47,6 +49,7 @@ import static org.mockito.Mockito.mock;
* @since 2.0
*/
@Multicast
@DisabledOnOs(value = OS.MAC, disabledReason = "Multicast tests don't work on MacOS")
public class DatagramPacketMulticastSendingHandlerTests {
@Test

View File

@@ -32,6 +32,8 @@ import java.util.concurrent.atomic.AtomicReference;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledOnOs;
import org.junit.jupiter.api.condition.OS;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.ConfigurableApplicationContext;
@@ -292,6 +294,7 @@ public class UdpChannelAdapterTests {
@SuppressWarnings("unchecked")
@Test
@DisabledOnOs(value = OS.MAC, disabledReason = "Multicast tests don't work on MacOS")
public void testMulticastSender(MulticastCondition multicastCondition) {
QueueChannel channel = new QueueChannel(2);
UnicastReceivingChannelAdapter adapter =