sindresorhus/delay

Delay time inaccuracy

Closed this issue · 1 comments

luwes commented

In my little utility library's test the delay time seems off making the test fail.
https://github.com/luwes/tili/blob/dev/test/throttle.js#L65

In the terminal it's logged as 400ms or so instead of 85ms.

If every other test is commented out, it is accurate and the one leftover test passes.

luwes commented

It was caused by AVA's concurrency I think.
Changing the affected tests to test.serial( fixed the issue.