fix: address review-work round 3 findings (async shutdown, signal generation, stale test name)

This commit is contained in:
YeonGyu-Kim
2026-03-11 21:30:04 +09:00
parent ff536e992a
commit 2c3c447dc4
6 changed files with 14 additions and 13 deletions
+4 -4
View File
@@ -7,7 +7,7 @@ describe("createPluginDispose", () => {
test("#given plugin with active managers and hooks #when dispose() is called #then backgroundManager.shutdown() is called", async () => {
// given
const backgroundManager = {
shutdown: (): void => {},
shutdown: async (): Promise<void> => {},
}
const skillMcpManager = {
disconnectAll: async (): Promise<void> => {},
@@ -29,7 +29,7 @@ describe("createPluginDispose", () => {
test("#given plugin with active MCP connections #when dispose() is called #then skillMcpManager.disconnectAll() is called", async () => {
// given
const backgroundManager = {
shutdown: (): void => {},
shutdown: async (): Promise<void> => {},
}
const skillMcpManager = {
disconnectAll: async (): Promise<void> => {},
@@ -64,7 +64,7 @@ describe("createPluginDispose", () => {
const autoSlashCommandDisposeSpy = spyOn(autoSlashCommand, "dispose")
const dispose = createPluginDispose({
backgroundManager: {
shutdown: (): void => {},
shutdown: async (): Promise<void> => {},
},
skillMcpManager: {
disconnectAll: async (): Promise<void> => {},
@@ -90,7 +90,7 @@ describe("createPluginDispose", () => {
test("#given dispose already called #when dispose() called again #then no errors", async () => {
// given
const backgroundManager = {
shutdown: (): void => {},
shutdown: async (): Promise<void> => {},
}
const skillMcpManager = {
disconnectAll: async (): Promise<void> => {},