Skip to content

Commit 3f39ba7

Browse files
Copilotstephentoub
andauthored
Skip flaky test on Mono where stderr callbacks are unsupported (#980)
* Initial plan * Fix race condition in StdioClientSessionTransport stderr handling Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com> * Simplify WaitForExit logic as suggested in code review Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com> * Skip flaky test on Mono and revert incorrect fix Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
1 parent fe1de46 commit 3f39ba7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/ModelContextProtocol.Tests/Transport/StdioClientTransportTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ public async Task CreateAsync_ValidProcessInvalidServer_Throws()
2222
await Assert.ThrowsAsync<IOException>(() => McpClient.CreateAsync(transport, loggerFactory: LoggerFactory, cancellationToken: TestContext.Current.CancellationToken));
2323
}
2424

25-
// [Fact(Skip = "Platform not supported by this test.", SkipUnless = nameof(IsStdErrCallbackSupported))]
26-
[Fact]
25+
[Fact(Skip = "Platform not supported by this test.", SkipUnless = nameof(IsStdErrCallbackSupported))]
2726
public async Task CreateAsync_ValidProcessInvalidServer_StdErrCallbackInvoked()
2827
{
2928
string id = Guid.NewGuid().ToString("N");

0 commit comments

Comments
 (0)