From 7aa340675b9afb878e3522ad9cb650dc9bad6df2 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Sun, 22 Mar 2020 02:39:20 +0100 Subject: [PATCH] Gracefully shut down integration master and slave Use SIGINT instead of the default SIGTERM when signalling to shut down the integration master and slave subprocesses. This should let nyc properly write the coverage report before it exits. --- test/integration/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/index.js b/test/integration/index.js index d79e124b..848a3b81 100644 --- a/test/integration/index.js +++ b/test/integration/index.js @@ -82,12 +82,12 @@ after(async function() { this.timeout(200000); if (slaveProcess) { console.log("Shutting down slave"); - slaveProcess.kill(); + slaveProcess.kill("SIGINT"); await events.once(slaveProcess, "exit"); } if (masterProcess) { console.log("Shutting down master"); - masterProcess.kill(); + masterProcess.kill("SIGINT"); await events.once(masterProcess, "exit"); } });