Fix tests
This commit is contained in:
parent
17bb716bc4
commit
dc094603cd
|
@ -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)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue