From ff8b59552d715d3291ebaaef70890f1193fa4c1e Mon Sep 17 00:00:00 2001 From: Anton Keks Date: Mon, 18 Aug 2025 23:47:31 +0300 Subject: [PATCH] ARPPingerTest fails on macos-15 --- test/net/azib/ipscan/core/net/ARPPingerTest.java | 13 +++++++++++++ test/net/azib/ipscan/core/net/UDPPingerTest.java | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/test/net/azib/ipscan/core/net/ARPPingerTest.java b/test/net/azib/ipscan/core/net/ARPPingerTest.java index ddb016ab..c639499c 100644 --- a/test/net/azib/ipscan/core/net/ARPPingerTest.java +++ b/test/net/azib/ipscan/core/net/ARPPingerTest.java @@ -1,7 +1,20 @@ package net.azib.ipscan.core.net; +import net.azib.ipscan.config.Platform; +import org.junit.Test; + +import java.io.IOException; + +import static org.junit.Assume.assumeFalse; + public class ARPPingerTest extends AbstractPingerTest { public ARPPingerTest() throws Exception { super(ARPPinger.class); } + + @Test @Override + public void pingAlive() throws IOException { + assumeFalse(Platform.MAC_OS); + super.pingAlive(); + } } diff --git a/test/net/azib/ipscan/core/net/UDPPingerTest.java b/test/net/azib/ipscan/core/net/UDPPingerTest.java index 2386beca..a8980d54 100644 --- a/test/net/azib/ipscan/core/net/UDPPingerTest.java +++ b/test/net/azib/ipscan/core/net/UDPPingerTest.java @@ -5,7 +5,7 @@ import org.junit.Test; import java.io.IOException; -import static org.junit.Assume.assumeTrue; +import static org.junit.Assume.assumeFalse; public class UDPPingerTest extends AbstractPingerTest { public UDPPingerTest() throws Exception { @@ -14,7 +14,7 @@ public class UDPPingerTest extends AbstractPingerTest { @Test @Override public void pingAlive() throws IOException { - assumeTrue(Platform.LINUX); + assumeFalse(Platform.WINDOWS); super.pingAlive(); } }