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
1 changed files with 5 additions and 1 deletions

View File

@ -146,7 +146,11 @@ function runServer (serverNumber: number, configOverride?: Object, args = []) {
server.app.stdout.removeListener('data', onStdout) 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) res(server)
}) })