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:
Hornwitser committed 2020-04-09 19:50:01 +02:00
1 parent 9507608e59
commit 61d92a6910
5 files changed
+8 -6

No files matched your search

+3 -1
View File
@@ -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();
})
});