From 2d2ce42b311c4bb5a75d236bb42b84fb17b54d6e Mon Sep 17 00:00:00 2001 From: Maxx Rodriguez Date: Sat, 24 May 2025 15:08:01 -0700 Subject: [PATCH] updated timeout in jest test from 11ms to 50ms. - stdio needs about ~30ms to fully connect now. not 1ms. --- core/context/mcp/MCPConnection.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/context/mcp/MCPConnection.test.ts b/core/context/mcp/MCPConnection.test.ts index acfc6618a..7e909fe43 100644 --- a/core/context/mcp/MCPConnection.test.ts +++ b/core/context/mcp/MCPConnection.test.ts @@ -173,7 +173,8 @@ describe("MCPConnection", () => { }); it("should handle custom connection timeout", async () => { - const conn = new MCPConnection({ ...options, timeout: 11 }); + const conn = new MCPConnection({ ...options, timeout: 50 }); + const mockConnect = jest .spyOn(Client.prototype, "connect") .mockImplementation(