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:
parent
ae36026695
commit
f7c61fafdb
1 changed files with 6 additions and 0 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue