mirror of
https://github.com/angryip/ipscan.git
synced 2025-10-26 11:18:17 +00:00
UDPPinger fails on macOS, disable for now
This commit is contained in:
parent
f1db8a7708
commit
216dabd879
@ -8,13 +8,7 @@ import java.net.InetAddress;
|
||||
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
/**
|
||||
* SharedPingerTest
|
||||
*
|
||||
* @author Anton Keks
|
||||
*/
|
||||
public class ICMPSharedPingerTest {
|
||||
|
||||
@Test @Ignore("this test works only under root")
|
||||
public void testPing() throws Exception {
|
||||
Pinger pinger = new ICMPSharedPinger(1000);
|
||||
@ -23,5 +17,4 @@ public class ICMPSharedPingerTest {
|
||||
assertTrue(result.getAverageTime() < 50);
|
||||
assertTrue(result.getTTL() >= 0);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -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 UDPPingerTest extends AbstractPingerTest {
|
||||
public UDPPingerTest() {
|
||||
super(new UDPPinger(10));
|
||||
}
|
||||
|
||||
@Test @Override
|
||||
public void pingAlive() throws IOException {
|
||||
assumeFalse(Platform.MAC_OS);
|
||||
super.pingAlive();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user