Skip to content

Commit 77f59ad

Browse files
committed
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 <git@garnier.wf>
1 parent 4adc81d commit 77f59ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mcp-test/src/test/java/io/modelcontextprotocol/client/StdioMcpSyncClientTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ void customErrorHandlerShouldReceiveErrors() throws InterruptedException {
6767
}
6868

6969
protected Duration getInitializationTimeout() {
70-
return Duration.ofSeconds(10);
70+
return Duration.ofSeconds(25);
7171
}
7272

7373
@Override

0 commit comments

Comments
 (0)