Fix flaky FlowControl_ParallelStreams_FirstInFirstOutOrder (#19977)

This commit is contained in:
James Newton-King 2020-03-19 13:03:52 +13:00 committed by GitHub
parent cef755fd82
commit 8531e2e83f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -30,6 +30,11 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Core.Tests
[QuarantinedTest]
public async Task FlowControl_ParallelStreams_FirstInFirstOutOrder()
{
// Increase response buffer size so there is no delay in writing to it.
// We only want to hit flow control back-pressure and not pipe back-pressure.
// This fixes flakyness https://github.com/dotnet/aspnetcore/pull/19949
_serviceContext.ServerOptions.Limits.MaxResponseBufferSize = 128 * 1024;
var writeTcs = new TaskCompletionSource<object>(TaskCreationOptions.RunContinuationsAsynchronously);
await InitializeConnectionAsync(async c =>