Skip to content

Commit

Permalink
fix: kill process after timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Nov 2, 2023
1 parent 0b87bcd commit 9909641
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
})
Expand Down

0 comments on commit 9909641

Please sign in to comment.