From 0ed9072b19af33b6d6bb1a41eb9efdfc2913b3a3 Mon Sep 17 00:00:00 2001 From: Lauri Nevala Date: Tue, 13 Oct 2020 16:49:52 +0300 Subject: [PATCH] Update integration/helpers/utils.ts Co-authored-by: Sebastian Malton Signed-off-by: Lauri Nevala --- integration/helpers/utils.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/integration/helpers/utils.ts b/integration/helpers/utils.ts index ab342ac1d6..65ea9a1a78 100644 --- a/integration/helpers/utils.ts +++ b/integration/helpers/utils.ts @@ -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) }