Skip to content

Commit 9909641

Browse files
committed
fix: kill process after timeout
1 parent 0b87bcd commit 9909641

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/node.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,9 @@ export default async function testNode (argv, execaOptions) {
115115
console.warn(kleur.red('!!! Collecting coverage has hung, killing process')) // eslint-disable-line no-console
116116
console.warn(kleur.red('!!! See https://github.com/ipfs/aegir/issues/1206 for more information')) // eslint-disable-line no-console
117117
killedWhileCollectingCoverage = true
118-
proc.kill()
118+
proc.kill('SIGTERM', {
119+
forceKillAfterTimeout: 1000
120+
})
119121
}, argv.covTimeout).unref()
120122
}
121123
})

0 commit comments

Comments
 (0)