Add more timeouts to Http2TestBase (#5955)

This commit is contained in:
Stephen Halter 2018-12-19 08:52:39 -08:00 committed by Chris Ross
parent 0d200b4328
commit af1a6eca81
1 changed files with 2 additions and 2 deletions

View File

@ -648,7 +648,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Core.Tests
protected static async Task FlushAsync(PipeWriter writableBuffer)
{
await writableBuffer.FlushAsync();
await writableBuffer.FlushAsync().AsTask().DefaultTimeout();
}
protected Task SendPreambleAsync() => SendAsync(new ArraySegment<byte>(Http2Connection.ClientPreface));
@ -1161,7 +1161,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Core.Tests
Assert.Contains(expectedErrorMessage, expected => message.Exception.Message.Contains(expected));
}
await _connectionTask;
await _connectionTask.DefaultTimeout();
_pair.Application.Output.Complete();
}