Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/System.Net.Http/tests/UnitTests/HttpContentTest.cs4
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();