Skip to content

Commit a3a714b

Browse files
Fix test failures in mono
1 parent 5de666d commit a3a714b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/ModelContextProtocol.Tests/Transport/StdioClientTransportTests.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ public async Task CreateAsync_ValidProcessInvalidServer_StdErrCallbackInvoked()
9494
[InlineData("http://localhost:1234/callback?foo=1&bar=2")]
9595
public async Task EscapesCliArgumentsCorrectly(string? cliArgumentValue)
9696
{
97+
if (PlatformDetection.IsMonoRuntime && cliArgumentValue is not null && cliArgumentValue.EndsWith("\\"))
98+
{
99+
Assert.Skip("mono runtime does not handle arguments ending with backslash correctly.");
100+
}
101+
97102
string cliArgument = $"--cli-arg={cliArgumentValue}";
98103

99104
StdioClientTransportOptions options = new()

0 commit comments

Comments
 (0)