mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-18 15:33:12 +09:00
Rename master plugin onExit hook to onShutdown
Rename the onExit hook for master plugins to onShutdown to better reflect when it is invoked.
This commit is contained in:
1 parent
9507608e59
commit
61d92a6910
5 files changed
+8
-6
No files matched your search
+3
-1
@@ -16,6 +16,7 @@ describe("lib/plugin", function() {
|
||||
await instancePlugin.init();
|
||||
})
|
||||
it("should define defaults for hooks", async function() {
|
||||
await instancePlugin.onMetrics();
|
||||
await instancePlugin.onStart();
|
||||
await instancePlugin.onStop();
|
||||
instancePlugin.onExit();
|
||||
@@ -30,7 +31,8 @@ describe("lib/plugin", function() {
|
||||
await masterPlugin.init();
|
||||
})
|
||||
it("should define defaults for hooks", async function() {
|
||||
await masterPlugin.onExit();
|
||||
await masterPlugin.onMetrics();
|
||||
await masterPlugin.onShutdown();
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user