mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-13 15:14:52 +09:00
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:
1 parent
27ef00705b
commit
7aa340675b
1 file changed
+2
-2
@@ -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");
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user