From 7797ab14316fe056a95a18ea89efe1efda0304aa Mon Sep 17 00:00:00 2001 From: David Wambugu Date: Wed, 11 Sep 2024 17:17:10 +0300 Subject: [PATCH] Update code from pr review. --- .../Microsoft.OData.Core.Tests/MessageWriterConcurrencyTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/FunctionalTests/Microsoft.OData.Core.Tests/MessageWriterConcurrencyTests.cs b/test/FunctionalTests/Microsoft.OData.Core.Tests/MessageWriterConcurrencyTests.cs index 35f842ab54..f4e01a6907 100644 --- a/test/FunctionalTests/Microsoft.OData.Core.Tests/MessageWriterConcurrencyTests.cs +++ b/test/FunctionalTests/Microsoft.OData.Core.Tests/MessageWriterConcurrencyTests.cs @@ -50,7 +50,7 @@ public async Task VerifyConcurrentResultsAreIsolatedAsync() /// A task that resolves to the string present in the output stream. private static async Task WritePayloadAsync(string content, IServiceProvider serviceProvider) { - using Stream outputStream = new MemoryStream(); + await using Stream outputStream = new MemoryStream(); var message = new InMemoryMessage {