workaround sporadic I/O lags in GitHub Actions

This commit is contained in:
alexlamsl 2022-08-10 06:12:26 +08:00
parent 6c0e522922
commit 9ea2777d11

View File

@ -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);