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.
This commit is contained in:
Hornwitser committed 2020-03-22 02:39:20 +01:00
1 parent 27ef00705b
commit 7aa340675b
1 file changed
+2 -2
+2 -2
View File
@@ -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");
}
});