Increase timer tolerance in test to avoid macOS failures.
This commit is contained in:
parent
65b9b71cf8
commit
929164e114
|
@ -33,7 +33,7 @@ void main()
|
||||||
auto dur = Clock.currTime(UTC()) - s_startTime;
|
auto dur = Clock.currTime(UTC()) - s_startTime;
|
||||||
s_cnt++;
|
s_cnt++;
|
||||||
assert(dur > 100.msecs * 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);
|
assert(s_cnt <= 3);
|
||||||
|
|
||||||
if (s_cnt == 3) {
|
if (s_cnt == 3) {
|
||||||
|
|
Loading…
Reference in a new issue