diff --git a/test/integration/index.js b/test/integration/index.js index a861b09a..046e7a65 100644 --- a/test/integration/index.js +++ b/test/integration/index.js @@ -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(); } });