mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 12:07:05 +00:00
make timed tests more forgiving
This commit is contained in:
parent
1039caa016
commit
f9997f6d42
2 changed files with 3 additions and 3 deletions
|
|
@ -20,7 +20,7 @@ namespace ICD.Common.Utils.Tests
|
||||||
complete = true;
|
complete = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
Assert.IsTrue(ThreadingUtils.Wait(() => complete, 100));
|
Assert.IsTrue(ThreadingUtils.Wait(() => complete, 200));
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
|
|
||||||
|
|
@ -77,9 +77,9 @@ namespace ICD.Common.Utils.Tests.Timers
|
||||||
int called = 0;
|
int called = 0;
|
||||||
SafeTimer timer = SafeTimer.Stopped(() => called++);
|
SafeTimer timer = SafeTimer.Stopped(() => called++);
|
||||||
|
|
||||||
timer.Reset(10, 10);
|
timer.Reset(100, 100);
|
||||||
|
|
||||||
ThreadingUtils.Sleep(50);
|
ThreadingUtils.Sleep(500);
|
||||||
|
|
||||||
Assert.AreEqual(4, called, 2);
|
Assert.AreEqual(4, called, 2);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue