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:
@@ -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
|
||||
|
||||
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user