reduce pinging count in test

This commit is contained in:
Anton Keks 2021-01-20 00:04:33 +02:00
parent 94ad034c55
commit 29d120f5fe

View File

@ -18,7 +18,7 @@ abstract class AbstractPingerTest {
@Test
public void pingAlive() throws IOException {
PingResult result = pinger.ping(new ScanningSubject(InetAddress.getLocalHost()), 3);
PingResult result = pinger.ping(new ScanningSubject(InetAddress.getLocalHost()), 2);
assertTrue(result.isAlive());
assertTrue(result.getAverageTime() <= 10);
}