Fix GetAIFunctionsAsync test to be more deterministic

This commit is contained in:
Stephen Toub 2025-03-19 16:20:45 -04:00
commit fd358b437d

View file

@ -498,7 +498,7 @@ public class ClientIntegrationTests : IClassFixture<ClientIntegrationTestFixture
var response = await chatClient.GetResponseAsync(messages, new() { Tools = [.. mappedTools], Temperature = 0 });
// Assert
Assert.Equal("Echo: Hello MCP!", response.Text);
Assert.Contains("Echo: Hello MCP!", response.Text);
}
[Fact]