From a2751e9baf0b93ea6b71060e3965a0a241bcdd6b Mon Sep 17 00:00:00 2001 From: Haiping Chen Date: Sun, 14 Jan 2024 04:08:34 -0600 Subject: [PATCH] Fix unit test of GetChatCompletions_Returns_RoleDialogModel --- .../SemanticKernelChatCompletionProviderTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/BotSharp.Plugin.SemanticKernel.UnitTests/SemanticKernelChatCompletionProviderTests.cs b/tests/BotSharp.Plugin.SemanticKernel.UnitTests/SemanticKernelChatCompletionProviderTests.cs index d6ef22ae..8c564a1a 100644 --- a/tests/BotSharp.Plugin.SemanticKernel.UnitTests/SemanticKernelChatCompletionProviderTests.cs +++ b/tests/BotSharp.Plugin.SemanticKernel.UnitTests/SemanticKernelChatCompletionProviderTests.cs @@ -27,7 +27,7 @@ namespace BotSharp.Plugin.SemanticKernel.Tests } [Fact] - public void GetChatCompletions_Returns_RoleDialogModel() + public async void GetChatCompletions_Returns_RoleDialogModel() { // Arrange var agent = new Agent(); @@ -53,7 +53,7 @@ namespace BotSharp.Plugin.SemanticKernel.Tests // Act - var result = _provider.GetChatCompletions(agent, conversations); + var result = await _provider.GetChatCompletions(agent, conversations); // Assert Assert.IsType(result);