diff options
-rw-r--r-- | src/System.Net.Http/tests/UnitTests/HttpContentTest.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/System.Net.Http/tests/UnitTests/HttpContentTest.cs b/src/System.Net.Http/tests/UnitTests/HttpContentTest.cs index 59e8bdbada..364864292f 100644 --- a/src/System.Net.Http/tests/UnitTests/HttpContentTest.cs +++ b/src/System.Net.Http/tests/UnitTests/HttpContentTest.cs @@ -12,10 +12,10 @@ namespace System.Net.Http.Tests public class HttpContentTest { [Fact] - public void Dispose_BufferContentThenDisposeContent_BufferedStreamGetsDisposed() + public async Task Dispose_BufferContentThenDisposeContent_BufferedStreamGetsDisposed() { MockContent content = new MockContent(); - content.LoadIntoBufferAsync().Wait(); + await content.LoadIntoBufferAsync(); Type type = typeof(HttpContent); TypeInfo typeInfo = type.GetTypeInfo(); |