mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-09 09:45:10 +00:00
make timed tests more forgiving
This commit is contained in:
@@ -20,7 +20,7 @@ namespace ICD.Common.Utils.Tests
|
||||
complete = true;
|
||||
});
|
||||
|
||||
Assert.IsTrue(ThreadingUtils.Wait(() => complete, 100));
|
||||
Assert.IsTrue(ThreadingUtils.Wait(() => complete, 200));
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user