diff --git a/test/integration/index.js b/test/integration/index.js index 3383142c..38823452 100644 --- a/test/integration/index.js +++ b/test/integration/index.js @@ -194,7 +194,9 @@ after(async function() { masterProcess.kill("SIGINT"); await events.once(masterProcess, "exit"); } - await control.connector.close(); + if (control) { + await control.connector.close(); + } }); // Ensure the test processes are stopped.