Skip to content

Commit fd358b4

Browse files
committed
Fix GetAIFunctionsAsync test to be more deterministic
1 parent 37214bd commit fd358b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/ModelContextProtocol.Tests/ClientIntegrationTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ public async Task GetAIFunctionsAsync_UsingEverythingServer_ToolsAreProperlyCall
498498
var response = await chatClient.GetResponseAsync(messages, new() { Tools = [.. mappedTools], Temperature = 0 });
499499

500500
// Assert
501-
Assert.Equal("Echo: Hello MCP!", response.Text);
501+
Assert.Contains("Echo: Hello MCP!", response.Text);
502502
}
503503

504504
[Fact]

0 commit comments

Comments
 (0)