Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There is a race condition in this test. It is trying to assert that the upstream can progress independently of the downstream in
bufferby having the downstream read two elements and asserting that the upstream writes those two elements plus another two. However, the downstream can close the stream after it has read two elements which will shut down the queue and interrupt the upstream when it writes the third element.We can prevent this by using
runScopedto have the downstream read two elements without closing the scope of the stream as we do in some tests for other variants of this operator.