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) {
|
||||
const pid = app.mainProcess.pid
|
||||
let ppid: any = pid
|
||||
ppid = await ppid()
|
||||
let mpid: any = app.mainProcess.pid
|
||||
let pid = await mpid()
|
||||
await app.stop()
|
||||
try {
|
||||
process.kill(ppid, "SIGKILL");
|
||||
process.kill(pid, "SIGKILL");
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user