From 99096412f57c31f71d005086ce4431432b62e398 Mon Sep 17 00:00:00 2001 From: achingbrain Date: Thu, 2 Nov 2023 10:04:13 +0000 Subject: [PATCH] fix: kill process after timeout --- src/test/node.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/node.js b/src/test/node.js index f1b672571..e8c479fde 100644 --- a/src/test/node.js +++ b/src/test/node.js @@ -115,7 +115,9 @@ export default async function testNode (argv, execaOptions) { console.warn(kleur.red('!!! Collecting coverage has hung, killing process')) // eslint-disable-line no-console console.warn(kleur.red('!!! See https://github.com/ipfs/aegir/issues/1206 for more information')) // eslint-disable-line no-console killedWhileCollectingCoverage = true - proc.kill() + proc.kill('SIGTERM', { + forceKillAfterTimeout: 1000 + }) }, argv.covTimeout).unref() } })