mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
Allow one extra ms in timer diff
Fixes sporadic test-next-tick-ordering.js failures
This commit is contained in:
parent
7c0f453b7c
commit
82e9da9fb7
@ -85,7 +85,7 @@ function insert(item, msecs) {
|
||||
var first;
|
||||
while (first = peek(list)) {
|
||||
var diff = now - first._idleStart;
|
||||
if (diff < msecs) {
|
||||
if (diff + 1 < msecs) {
|
||||
list.again(msecs - diff);
|
||||
debug(msecs + ' list wait because diff is ' + diff);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user