Change async void System.Text.Json test to be async Task (#44418)
authorStephen Toub <stoub@microsoft.com>
Mon, 9 Nov 2020 20:11:30 +0000 (15:11 -0500)
committerGitHub <noreply@github.com>
Mon, 9 Nov 2020 20:11:30 +0000 (12:11 -0800)
src/libraries/System.Text.Json/tests/Serialization/Stream.WriteTests.cs

index df49a73..8f9f233 100644 (file)
@@ -404,7 +404,7 @@ namespace System.Text.Json.Serialization.Tests
         [InlineData(8192)]
         [InlineData(16384)]
         [InlineData(65536)]
-        public static async void FlushThresholdTest(int bufferSize)
+        public static async Task FlushThresholdTest(int bufferSize)
         {
             // bufferSize * 0.9 is the threshold size from codebase, subtract 2 for [" characters, then create a 
             // string containing (threshold - 2) amount of char 'a' which when written into output buffer produces buffer