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:
parent
83b8fa9d98
commit
38796e582b
@ -21,10 +21,11 @@ export function setup(): Application {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function tearDown(app: 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()
|
await app.stop()
|
||||||
try {
|
try {
|
||||||
process.kill(pid, 0);
|
process.kill(pid, "SIGKILL");
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user