Open halter73 opened 3 weeks ago
If I'm reading the assert message correctly, the problem is that we were expecting "Hello World?" and only got the initial "H".
~However, looking more carefully, it looks like Expected and Actual are reversed at this call site so we're expecting "H" and getting "Hello World?". I wonder if Buffer.ToSpan()
can return more than Buffer.Length
says it will.~
Edit: I was looking at the wrong assert.
Receive
can stop reading without seeing the expected length if any given ReadAsync
call returns 0.
StreamReader.ReadAsync
is documented as returning 0 for end-of-stream, so that seems right. Presumably, that means the missing text never made it across the wire, which seems plausible if there's an intentional failure.
I believe @JamesNK added this test fairly recently, so he might be interested in taking a look.
Failing Test(s)
Error Message
Stacktrace
Logs
Build
https://dev.azure.com/dnceng-public/public/_build/results?buildId=811708&view=ms.vss-test-web.build-test-results-tab&runId=21019092&resultId=122858&paneView=attachments