Skip to content

Commit

Permalink
workaround sporadic I/O lags in GitHub Actions (#5613)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlamsl authored Aug 9, 2022
1 parent 6c0e522 commit 503532c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/mocha.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ process.nextTick(function run() {
if (task.length) {
task.timeout = function(limit) {
clearTimeout(timer);
task.limit = limit + lag;
limit += lag;
task.limit = limit;
timer = setTimeout(function() {
raise(new Error("Timed out: exceeds " + limit + "ms"));
}, limit);
Expand Down

0 comments on commit 503532c

Please sign in to comment.