-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
stream, test: add tests for _readableStream.awaitDrain #8684
Comments
I have made a proposal how this state variable can be tested in PR #8914 . |
@shmuga yes, good job! The test you mentioned is increasing the awaitDrain mechanism manually, by calling resume: https://github.com/nodejs/node/blob/master/test/parallel/test-stream-pipe-await-drain-manual-resume.js#L29-L34. On that test, you should basically check that awaitDrain goes to zero as describe in: https://github.com/nodejs/node/blob/master/test/parallel/test-stream-pipe-await-drain-manual-resume.js#L37-L40 |
@mcollina great. will add some more tests for manual-resume. But I think this comment
is a bit strange at the place "increase again". |
@shmuga resume interacts with See also https://github.com/nodejs/node/blob/master/lib/_stream_readable.js#L556. When was that test added? Who did it? It might be worth getting the original PR here, and discussing with the author. |
Closed by 21a077a |
Fixes: #8684 PR-URL: #8914 Reviewed-By: Matteo Collina <[email protected]>
Fixes: nodejs#8684 PR-URL: nodejs#8914 Reviewed-By: Matteo Collina <[email protected]>
Fixes: nodejs#8684 PR-URL: nodejs#8914 Reviewed-By: Matteo Collina <[email protected]>
Fixes: nodejs#8684 PR-URL: nodejs#8914 Reviewed-By: Matteo Collina <[email protected]>
Fixes: nodejs#8684 PR-URL: nodejs#8914 Reviewed-By: Matteo Collina <[email protected]>
Fixes: #8684 PR-URL: #8914 Reviewed-By: Matteo Collina <[email protected]>
Fixes: #8684 PR-URL: #8914 Reviewed-By: Matteo Collina <[email protected]>
Fixes: #8684 PR-URL: #8914 Reviewed-By: Matteo Collina <[email protected]>
Fixes: #8684 PR-URL: #8914 Reviewed-By: Matteo Collina <[email protected]>
Part of #8644.
The
_readableState
that needs to be tested is:node/lib/_stream_readable.js
Lines 88 to 89 in 774146d
See also #8683
cc @Fishrock123 @nodejs/streams
The text was updated successfully, but these errors were encountered: