From 38796e582beb0a90e7f85426182db3f127ee5f27 Mon Sep 17 00:00:00 2001 From: Lauri Nevala Date: Wed, 14 Oct 2020 14:26:09 +0300 Subject: [PATCH] Fix integration test teardown (#1082) Signed-off-by: Lauri Nevala --- integration/helpers/utils.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/integration/helpers/utils.ts b/integration/helpers/utils.ts index 55395f84e3..92e9ade7af 100644 --- a/integration/helpers/utils.ts +++ b/integration/helpers/utils.ts @@ -21,10 +21,11 @@ export function setup(): 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() try { - process.kill(pid, 0); + process.kill(pid, "SIGKILL"); } catch (e) { return }