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:
authorMaxim Lipnin <v-maxlip@microsoft.com>2019-12-09 18:21:19 +0300
committerMarek Safar <marek.safar@gmail.com>2019-12-10 12:03:08 +0300
commite610bc82cd25f141b1981b1f2e1bd1e7ce873087 (patch)
tree48cbc4af6038ff0de320e871111e893172d24e49
parentf4514bd680522b35a6067ef74b6a2fa3ac2bb632 (diff)
Update System.Net.Http.Tests.HttpContentTest.Dispose_BufferContentThenDisposeContent_BufferedStreamGetsDisposed
-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();