mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-14 23:24:52 +09:00
Fix kill logic of integration test
Test if the process variable exists before trying to call kill on it, as in certain failure situations it is not set.
This commit is contained in:
1 parent
4f463a8180
commit
38c392ff6d
1 file changed
+2
-2
@@ -110,8 +110,8 @@ after(async function() {
|
||||
|
||||
// Ensure the test processes are stopped.
|
||||
process.on("exit", () => {
|
||||
slaveProcess.kill();
|
||||
masterProcess.kill();
|
||||
if (slaveProcess) { slaveProcess.kill(); }
|
||||
if (masterProcess) { masterProcess.kill(); }
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user