workaround sporadic I/O lags in GitHub Actions (#5613)
This commit is contained in:
parent
6c0e522922
commit
503532cf77
|
|
@ -68,7 +68,8 @@ process.nextTick(function run() {
|
||||||
if (task.length) {
|
if (task.length) {
|
||||||
task.timeout = function(limit) {
|
task.timeout = function(limit) {
|
||||||
clearTimeout(timer);
|
clearTimeout(timer);
|
||||||
task.limit = limit + lag;
|
limit += lag;
|
||||||
|
task.limit = limit;
|
||||||
timer = setTimeout(function() {
|
timer = setTimeout(function() {
|
||||||
raise(new Error("Timed out: exceeds " + limit + "ms"));
|
raise(new Error("Timed out: exceeds " + limit + "ms"));
|
||||||
}, limit);
|
}, limit);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user