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:
parent
aa0ec53f76
commit
b86df651af
|
|
@ -123,7 +123,13 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Core.Tests
|
||||||
|
|
||||||
public Http2ConnectionTests()
|
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;
|
_noopApplication = context => Task.CompletedTask;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue