Skip to content

Commit 3c08404

Browse files
Skip failing test
1 parent afe5022 commit 3c08404

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/ModelContextProtocol.Tests/Transport/StdioClientTransportTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ namespace ModelContextProtocol.Tests.Transport;
77

88
public class StdioClientTransportTests(ITestOutputHelper testOutputHelper) : LoggedTest(testOutputHelper)
99
{
10-
public static bool IsStdErrCallbackSupported => !PlatformDetection.IsMonoRuntime;
11-
12-
[Fact]
10+
public static bool IsMonoRuntime => PlatformDetection.IsMonoRuntime;
11+
12+
[Fact(Skip = "Platform not supported by this test.", SkipWhen = nameof(IsMonoRuntime))]
1313
public async Task CreateAsync_ValidProcessInvalidServer_Throws()
1414
{
1515
string id = Guid.NewGuid().ToString("N");
@@ -22,7 +22,7 @@ public async Task CreateAsync_ValidProcessInvalidServer_Throws()
2222
Assert.Contains(id, e.ToString());
2323
}
2424

25-
[Fact(Skip = "Platform not supported by this test.", SkipUnless = nameof(IsStdErrCallbackSupported))]
25+
[Fact(Skip = "Platform not supported by this test.", SkipWhen = nameof(IsMonoRuntime))]
2626
public async Task CreateAsync_ValidProcessInvalidServer_StdErrCallbackInvoked()
2727
{
2828
string id = Guid.NewGuid().ToString("N");

0 commit comments

Comments
 (0)