fix(test): stabilize boundary timing

This commit is contained in:
morluto
2026-07-30 04:37:41 +00:00
parent 97f6a0f3fd
commit f0d8cdafa8
2 changed files with 7 additions and 1 deletions
@@ -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);
+3
View File
@@ -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));