mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Update integration/helpers/utils.ts
Co-authored-by: Sebastian Malton <sebastian@malton.name> Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
parent
ab2acefcf4
commit
0ed9072b19
@ -20,12 +20,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 ppid: any = pid
|
let pid = await mpid()
|
||||||
ppid = await ppid()
|
|
||||||
await app.stop()
|
await app.stop()
|
||||||
try {
|
try {
|
||||||
process.kill(ppid, "SIGKILL");
|
process.kill(pid, "SIGKILL");
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e)
|
console.error(e)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user