Skip to content

armgit / rea

Public Imported from GitHub
0

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

fix(test): stabilize boundary timing

morlutof0d8cdafa86b
diff --git a/tests/boundary/providers/ghidra/ghidraClient.test.ts b/tests/boundary/providers/ghidra/ghidraClient.test.ts
index 15defe06c..2d9885e96 100644
--- a/tests/boundary/providers/ghidra/ghidraClient.test.ts
+++ b/tests/boundary/providers/ghidra/ghidraClient.test.ts
@@ -219,7 +219,10 @@ describe("GhidraClient", () => {
["analysis_timeout", "analysis_timeout"],
["exit", "process"],
] as const)("projects %s startup as %s", async (mode, expectedKind) => {
- const client = clientFor(new FixtureLauncher(mode));
+ const client = clientFor(
+ new FixtureLauncher(mode),
+ mode === "future_id" ? { requestTimeoutMs: 1_000 } : {},
+ );
const result = await client.start();
expect(result.ok).toBe(false);
if (!result.ok) expect(result.error.kind).toBe(expectedKind);
diff --git a/tests/fixtures/processReactiveScenario.mjs b/tests/fixtures/processReactiveScenario.mjs
index d1e2e6013..e90b27a9c 100644
--- a/tests/fixtures/processReactiveScenario.mjs
+++ b/tests/fixtures/processReactiveScenario.mjs
@@ -24,3 +24,6 @@ await new Promise((resolve, reject) => {
worker.once("exit", resolve);
worker.once("error", reject);
});
+// Let the parent capture coordinator ingest final protocol and filesystem events
+// before the root process exits and submits its terminal loss signal.
+await new Promise((resolve) => setTimeout(resolve, 25));