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.
This commit is contained in:
morluto
2026-10-13 22:26:36 +08:00
parent cbe769b504
commit c85abacdb2
+2 -2
View File
@@ -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" },