mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-16 15:30:41 +09:00
Remove --exit flag from tests
When setting up the tests there were issues with code that didn't properly clean up after itself and left lingering connections, intervals or timers that kept the event loop running after the tests where done. To fix this the --exit flag was passed as a temporary measure but then subsequently forgotten about. The issues with keeping the event loop alive have long since been fixed on Linux, but on Windows there was a problem with the control connector not exiting because the master server was killed instead of shutten down properly. With that issue fixed there are no longer any connections or timers keeping the event loop alive and --exit can thus be removed.
This commit is contained in:
1 parent
d6f09f4c1a
commit
2069689780
2 files changed
+2
-1
No files matched your search
+1
-1
@@ -2,7 +2,7 @@
|
||||
"name": "root",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"test": "mocha --exit --check-leaks -R spec --recursive test plugins/global_chat/test plugins/research_sync/test plugins/statistics_exporter/test plugins/subspace_storage/test",
|
||||
"test": "mocha --check-leaks -R spec --recursive test plugins/global_chat/test plugins/research_sync/test plugins/statistics_exporter/test plugins/subspace_storage/test",
|
||||
"fast-test": "FAST_TEST=y npm test",
|
||||
"cover": "nyc npm test",
|
||||
"fast-cover": "FAST_TEST=y nyc npm test",
|
||||
|
||||
@@ -175,6 +175,7 @@ after(async function() {
|
||||
masterProcess.kill("SIGINT");
|
||||
await events.once(masterProcess, "exit");
|
||||
}
|
||||
await control.connector.close();
|
||||
});
|
||||
|
||||
// Ensure the test processes are stopped.
|
||||
|
||||
Reference in new issue
Block a user