Replace .Wait with await (#6191)
This commit is contained in:
parent
712b01d063
commit
4816bdcaad
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in New Issue