diff --git a/runtime/dotnet/tests/SkillConversationIdFactoryTests.cs b/runtime/dotnet/tests/SkillConversationIdFactoryTests.cs index b01b829ef9..2bbc8aaedd 100644 --- a/runtime/dotnet/tests/SkillConversationIdFactoryTests.cs +++ b/runtime/dotnet/tests/SkillConversationIdFactoryTests.cs @@ -63,7 +63,7 @@ public async Task ShouldCreateCorrectConversationId() BotFrameworkSkill = skill }; - var conversationId = _idFactory.CreateSkillConversationIdAsync(options, CancellationToken.None).Result; + var conversationId = await _idFactory.CreateSkillConversationIdAsync(options, CancellationToken.None); Assert.IsNotNull(conversationId); } @@ -149,7 +149,6 @@ public async Task ShouldNotGetReferenceAfterDeleted() private bool RefEquals(ConversationReference ref1, ConversationReference ref2) { return ref1.Conversation.Id == ref2.Conversation.Id && ref1.ServiceUrl == ref2.ServiceUrl; - } } }