Extend server/discover probe timeout in in-memory tests to fix flaky Windows Debug CI hang (#1701) (#1702)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Stephen Halter <halter73@gmail.com>
This commit is contained in:
Pranav Senthilnathan 2026-07-24 16:46:39 -07:00 • committed by GitHub
commit f7c61fafdb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -86,6 +86,12 @@ public abstract class ClientServerTestBase : LoggedTest, IAsyncDisposable
protected async Task<McpClient> CreateMcpClientForServer(McpClientOptions? clientOptions = null)
{
clientOptions ??= new McpClientOptions();
// Disable the server/discover probe timeout to avoid CI slowness spuriously tripping it (issue #1701).
// Tests that need a specific probe timeout should create their own client instead of using this helper.
clientOptions.DiscoverProbeTimeout = TestConstants.DefaultTimeout;
return await McpClient.CreateAsync(
new StreamClientTransport(
serverInput: _clientToServerPipe.Writer.AsStream(),