test(mcp): stabilize lazy-loading verification
This commit is contained in:
@@ -105,7 +105,7 @@ describe("process-capture MCP elicitation", () => {
|
||||
await Promise.allSettled([client.close(), server.close()]);
|
||||
await rm(root, { recursive: true, force: true });
|
||||
}
|
||||
});
|
||||
}, 20_000);
|
||||
|
||||
it.each(["tampered", "expired"] as const)(
|
||||
"rejects %s signed state through the modern MCP client and server",
|
||||
|
||||
@@ -87,7 +87,9 @@ describe("target-free MCP lifecycle", () => {
|
||||
expect(closed).toEqual([canonicalTargetPath]);
|
||||
expect(
|
||||
z
|
||||
.object({ result: z.object({ path: z.string(), sha256: z.string() }) })
|
||||
.object({
|
||||
result: z.object({ path: z.string(), sha256: z.string() }),
|
||||
})
|
||||
.parse(
|
||||
structured(
|
||||
await mcp.callTool({
|
||||
@@ -100,7 +102,7 @@ describe("target-free MCP lifecycle", () => {
|
||||
path: canonicalTargetPath,
|
||||
sha256: z.object({ sha256: z.string() }).parse(second).sha256,
|
||||
});
|
||||
});
|
||||
}, 10_000);
|
||||
|
||||
it("reports no-target, opens, analyzes, switches, reports status, and closes", async () => {
|
||||
directory = await createTestTempDirectory("rea-mcp-session-");
|
||||
|
||||
Reference in New Issue
Block a user