Fix integration test teardown (#1082)

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Lauri Nevala authored and GitHub committed 2020-10-14 14:26:09 +03:00
1 parent 83b8fa9d98
commit 38796e582b
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
}