From c85abacdb27e275880722fcb7b4138c54e43a87b Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Tue, 13 Oct 2026 22:26:23 +0800 Subject: [PATCH] fix(ida): mock legacy list_functions in attached transport tests The attached fixture negotiates the legacy protocol, so list_procedures calls list_functions, never list_funcs. The list_funcs mocks added in #2449 never fired and both tests failed on arrival. No product change. --- src/ida/IdaSessionClient.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ida/IdaSessionClient.test.ts b/src/ida/IdaSessionClient.test.ts index c15b34bba..4de487689 100644 --- a/src/ida/IdaSessionClient.test.ts +++ b/src/ida/IdaSessionClient.test.ts @@ -1413,7 +1413,7 @@ it("binds retained transport diagnostics to the requested operation and recovery const { producer, client } = await fixture("attached"); await client.execute("health", {}); producer.beforeCall = async (name) => { - if (name === "list_funcs") + if (name === "list_functions") throw new ProviderAdapterError("ida", "transport", { diagnostics: { reason: "upstream closed" }, capturedOutput: { @@ -1443,7 +1443,7 @@ it("retains transport diagnostics on a cancellation regardless of stderr", async await client.execute("health", {}); const controller = new AbortController(); producer.beforeCall = async (name) => { - if (name === "list_funcs") { + if (name === "list_functions") { controller.abort(); throw new ProviderAdapterError("ida", "transport", { diagnostics: { reason: "upstream closed after cancellation" },