Increase timer tolerance in test to avoid macOS failures.

This commit is contained in:
Sönke Ludwig 2017-12-02 13:16:30 +01:00
parent 65b9b71cf8
commit 929164e114

View file

@ -23,7 +23,7 @@ void main()
auto dur = Clock.currTime(UTC()) - s_startTime;
assert(dur > 200.msecs);
assert(dur < 220.msecs);
assert(dur < 220.msecs);
s_startTime = Clock.currTime(UTC());
eventDriver.timers.set(tm, 100.msecs, 100.msecs);
@ -33,7 +33,7 @@ void main()
auto dur = Clock.currTime(UTC()) - s_startTime;
s_cnt++;
assert(dur > 100.msecs * s_cnt);
assert(dur < 100.msecs * s_cnt + 20.msecs);
assert(dur < 100.msecs * s_cnt + 60.msecs);
assert(s_cnt <= 3);
if (s_cnt == 3) {