mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-11 23:04:52 +09:00
Check if test control exists before closing it
Fix after action in integration test throwing in certain error cases.
This commit is contained in:
1 parent
177278fee3
commit
4a8a4c8227
1 file changed
+3
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user