1
0
Fork 0

Fix tests

This commit is contained in:
Chocobozzz 2019-01-17 11:23:40 +01:00
parent 17bb716bc4
commit dc094603cd
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

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