This should fix the flaky test (dotnet/corefx#36826)
authorDavid Fowler <davidfowl@gmail.com>
Fri, 12 Apr 2019 18:55:20 +0000 (11:55 -0700)
committerGitHub <noreply@github.com>
Fri, 12 Apr 2019 18:55:20 +0000 (11:55 -0700)
commit1a6577d197343e78451969dcb586baeff39bec1e
tree77295a5603927ca8d759628ad0af61cda262e34f
parent2e24e5f99b30049fa133201ded8153a86f05c4b7
This should fix the flaky test (dotnet/corefx#36826)

- The pool in the test wasn't being used (This was changed in a previous commit)
- Use the DisposeTrackingBufferPool to make sure we allocated the number of segments we expect

Commit migrated from https://github.com/dotnet/corefx/commit/6eeed98a406adf281649e94546975d52c72465e6
src/libraries/System.IO.Pipelines/tests/PipeReaderCopyToAsyncTests.cs