-
Notifications
You must be signed in to change notification settings - Fork 10k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make GetMemory use MaxBufferSize for MemoryPool #7143
Conversation
var secondSpan = Writer.GetSpan(10000); | ||
|
||
Assert.False(span.SequenceEqual(secondSpan)); | ||
Assert.Equal(4096, span.Length); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you verify this same result for when 0 < sizeHint < 4096?
Can you also update CanGetNewMemoryWhenSizeTooLarge to verify that memoryLarge.Length is equal to MemoryPool<byte>.MaxBufferSize
?
Not sure why the last test run failed:
|
An abort usually means there's a crash on a background thread somewhere |
If it's a debug build, Debug.Assert failures are one of the more common reasons for aborted test runs. |
We didn't get artifacts for test runs. Fix: #7251 |
Another issue with StreamPipeWriter found by #7110