Fix integration test teardown

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Lauri Nevala committed 2020-10-14 12:36:58 +03:00
1 parent 83b8fa9d98
commit 3368b6d403
1 file changed
+3 -2
+3 -2
View File
@@ -21,10 +21,11 @@ export function setup(): Application {
}
export async function tearDown(app: Application) {
const pid = app.mainProcess.pid
let mpid: any = app.mainProcess.pid
let pid = await mpid()
await app.stop()
try {
process.kill(pid, 0);
process.kill(pid, "SIGKILL");
} catch (e) {
return
}