Skip to content

Commit 503532c

Browse files
authored
workaround sporadic I/O lags in GitHub Actions (#5613)
1 parent 6c0e522 commit 503532c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/mocha.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ process.nextTick(function run() {
6868
if (task.length) {
6969
task.timeout = function(limit) {
7070
clearTimeout(timer);
71-
task.limit = limit + lag;
71+
limit += lag;
72+
task.limit = limit;
7273
timer = setTimeout(function() {
7374
raise(new Error("Timed out: exceeds " + limit + "ms"));
7475
}, limit);

0 commit comments

Comments
 (0)