Fix Http2ConnectionTests flakiness (#2364)

- The default PipeScheduler got switched from Inline to ThreadPool.
- This switches the Http2ConnectionTests PipeSchedulers back to ThreadPool.
This commit is contained in:
Stephen Halter 2018-03-05 16:28:35 -08:00 committed by GitHub
parent aa0ec53f76
commit b86df651af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -123,7 +123,13 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Core.Tests
public Http2ConnectionTests()
{
_pair = DuplexPipe.CreateConnectionPair(_memoryPool);
var inlineSchedulingPipeOptions = new PipeOptions(
pool: _memoryPool,
readerScheduler: PipeScheduler.Inline,
writerScheduler: PipeScheduler.Inline
);
_pair = DuplexPipe.CreateConnectionPair(inlineSchedulingPipeOptions, inlineSchedulingPipeOptions);
_noopApplication = context => Task.CompletedTask;