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 {