Fix tests
This commit is contained in:
parent
17bb716bc4
commit
dc094603cd
1 changed files with 5 additions and 1 deletions
|
@ -146,7 +146,11 @@ function runServer (serverNumber: number, configOverride?: Object, args = []) {
|
|||
|
||||
server.app.stdout.removeListener('data', onStdout)
|
||||
|
||||
process.on('exit', () => process.kill(server.app.pid))
|
||||
process.on('exit', () => {
|
||||
try {
|
||||
process.kill(server.app.pid)
|
||||
} catch { /* empty */ }
|
||||
})
|
||||
|
||||
res(server)
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue