From f9997f6d423aa0969d76bca1b1a58ea48003254b Mon Sep 17 00:00:00 2001 From: Jack Kanarish Date: Mon, 11 Dec 2017 16:42:31 -0500 Subject: [PATCH] make timed tests more forgiving --- ICD.Common.Utils.Tests/ThreadingUtilsTest.cs | 2 +- ICD.Common.Utils.Tests/Timers/SafeTimerTest.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ICD.Common.Utils.Tests/ThreadingUtilsTest.cs b/ICD.Common.Utils.Tests/ThreadingUtilsTest.cs index 7a852e5..afa4328 100644 --- a/ICD.Common.Utils.Tests/ThreadingUtilsTest.cs +++ b/ICD.Common.Utils.Tests/ThreadingUtilsTest.cs @@ -20,7 +20,7 @@ namespace ICD.Common.Utils.Tests complete = true; }); - Assert.IsTrue(ThreadingUtils.Wait(() => complete, 100)); + Assert.IsTrue(ThreadingUtils.Wait(() => complete, 200)); } [Test] diff --git a/ICD.Common.Utils.Tests/Timers/SafeTimerTest.cs b/ICD.Common.Utils.Tests/Timers/SafeTimerTest.cs index 6a1e34e..3a78f11 100644 --- a/ICD.Common.Utils.Tests/Timers/SafeTimerTest.cs +++ b/ICD.Common.Utils.Tests/Timers/SafeTimerTest.cs @@ -77,9 +77,9 @@ namespace ICD.Common.Utils.Tests.Timers int called = 0; SafeTimer timer = SafeTimer.Stopped(() => called++); - timer.Reset(10, 10); + timer.Reset(100, 100); - ThreadingUtils.Sleep(50); + ThreadingUtils.Sleep(500); Assert.AreEqual(4, called, 2);