From d61368507b7598b5393601c0dc6abf8987fff9e3 Mon Sep 17 00:00:00 2001 From: Robert Vazan Date: Wed, 31 Jan 2018 03:14:11 +0100 Subject: [PATCH] Don't bomb NTP servers during test run --- GuerrillaNtpTests/NtpClientTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GuerrillaNtpTests/NtpClientTests.cs b/GuerrillaNtpTests/NtpClientTests.cs index 2788706..2b2faf1 100644 --- a/GuerrillaNtpTests/NtpClientTests.cs +++ b/GuerrillaNtpTests/NtpClientTests.cs @@ -16,7 +16,7 @@ public class NtpClientTests [Test] public void Test_can_get_correction_offset() { - const int tries = 10; + const int tries = 3; int hits = 0; using (var client = new NtpClient(server)) { @@ -34,7 +34,7 @@ public void Test_can_get_correction_offset() } } Console.WriteLine($"Got {hits} of {tries} replies"); - Assert.GreaterOrEqual(2 * hits, tries); + Assert.GreaterOrEqual(hits, 1); } [Test]