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) }