PipeReaderStream.ReadInternal throws AggregateException unexpectedly (#70248)
authorBadre BSAILA <54767641+pedrobsaila@users.noreply.github.com>
Fri, 22 Jul 2022 18:36:02 +0000 (20:36 +0200)
committerGitHub <noreply@github.com>
Fri, 22 Jul 2022 18:36:02 +0000 (14:36 -0400)
commita8e3e7db5a9404f788757a40bd231d2a29e96902
treee4d9e04dde4db319eed7c43d811a51c91ea20e68
parent8eeb4df9945f03f54f6e0e9b6a95715c42604c27
PipeReaderStream.ReadInternal throws AggregateException unexpectedly (#70248)

* PipeReaderStream.ReadInternal throws AggregateException unexpectedly

* add unit test

* assert on error message

* Update src/libraries/System.IO.Pipelines/tests/PipeReaderStreamTests.nonnetstandard.cs

simplify task throwing exception

Co-authored-by: Stephen Toub <stoub@microsoft.com>
Co-authored-by: Stephen Toub <stoub@microsoft.com>
src/libraries/System.IO.Pipelines/src/System/IO/Pipelines/PipeReaderStream.cs
src/libraries/System.IO.Pipelines/tests/PipeReaderStreamTests.nonnetstandard.cs