From 77f59ad89bec7c225e946e973be15e7abfdcae14 Mon Sep 17 00:00:00 2001 From: Daniel Garnier-Moiroux Date: Wed, 18 Feb 2026 16:39:16 +0100 Subject: [PATCH] Stdio integration tests: increase initialize timeout to 25s The initialize timeout was too short to be able to download the server with NPX. As stated in the javadoc of `StdioMcpSyncClientTests`: > These tests use npx to download and run the MCP "everything" server > locally. The first test execution will download the everything server > scripts and cache them locally, which can take more than 15 seconds. > Subsequent test runs will use the cached version and execute faster. Since the download happens on calling "connect", it is triggered during the initialization of the client. Signed-off-by: Daniel Garnier-Moiroux --- .../io/modelcontextprotocol/client/StdioMcpSyncClientTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mcp-test/src/test/java/io/modelcontextprotocol/client/StdioMcpSyncClientTests.java b/mcp-test/src/test/java/io/modelcontextprotocol/client/StdioMcpSyncClientTests.java index b1e5679..08e5ea6 100644 --- a/mcp-test/src/test/java/io/modelcontextprotocol/client/StdioMcpSyncClientTests.java +++ b/mcp-test/src/test/java/io/modelcontextprotocol/client/StdioMcpSyncClientTests.java @@ -67,7 +67,7 @@ class StdioMcpSyncClientTests extends AbstractMcpSyncClientTests { } protected Duration getInitializationTimeout() { - return Duration.ofSeconds(10); + return Duration.ofSeconds(25); } @Override