Skip to content

armgit / rea

Public Imported from GitHub
0

Reverse engineer anything with agents, from app behavior down to native binaries.

fix(ida): mock legacy list_functions in attached transport tests

morlutoc85abacdb27e
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" },