1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Fix integration test teardown (#1082)

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Lauri Nevala 2020-10-14 14:26:09 +03:00 committed by GitHub
parent 83b8fa9d98
commit 38796e582b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}