Replace .Wait with await (#6191)

This commit is contained in:
David Fowler 2018-12-30 11:19:05 -04:00 committed by GitHub
parent 712b01d063
commit 4816bdcaad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -536,7 +536,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Core.Tests
}
[Fact]
public void ProcessRequestsAsyncEnablesKeepAliveTimeout()
public async Task ProcessRequestsAsyncEnablesKeepAliveTimeout()
{
var requestProcessingTask = _http1Connection.ProcessRequestsAsync<object>(null);
@ -546,7 +546,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Core.Tests
_http1Connection.StopProcessingNextRequest();
_application.Output.Complete();
requestProcessingTask.Wait();
await requestProcessingTask.DefaultTimeout();
}
[Fact]