fix(test): stabilize boundary timing
This commit is contained in:
@@ -219,7 +219,10 @@ describe("GhidraClient", () => {
|
|||||||
["analysis_timeout", "analysis_timeout"],
|
["analysis_timeout", "analysis_timeout"],
|
||||||
["exit", "process"],
|
["exit", "process"],
|
||||||
] as const)("projects %s startup as %s", async (mode, expectedKind) => {
|
] 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();
|
const result = await client.start();
|
||||||
expect(result.ok).toBe(false);
|
expect(result.ok).toBe(false);
|
||||||
if (!result.ok) expect(result.error.kind).toBe(expectedKind);
|
if (!result.ok) expect(result.error.kind).toBe(expectedKind);
|
||||||
|
|||||||
+3
@@ -24,3 +24,6 @@ await new Promise((resolve, reject) => {
|
|||||||
worker.once("exit", resolve);
|
worker.once("exit", resolve);
|
||||||
worker.once("error", reject);
|
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));
|
||||||
|
|||||||
Reference in New Issue
Block a user