-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
addin test for _stream.writable finished state #8791
addin test for _stream.writable finished state #8791
Conversation
|
||
assert.strictEqual(writable._writableState.finished, false); | ||
|
||
writable.end('testing finished state', () => { |
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.
The callback here should be wrapped in a common.mustCall()
in order to validate that it really does get called.
|
||
writable._write = (chunk, encoding, cb) => { | ||
cb(); | ||
}; |
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 please add an assert also here that finished is false?
Good job! cc @nodejs/streams |
Can you please update the commit message to follow our standards? |
The commit style guidelines are detailed here: https://github.com/nodejs/node/blob/master/CONTRIBUTING.md#step-3-commit :-) |
c133999
to
83c7a88
Compare
@mcollina ping |
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.
LGTM
Failures unrelated. This is good to go, I'm planning on merging tomorrow or Friday, if no one else has objections. |
const writable = new stream.Writable(); | ||
|
||
writable._write = (chunk, encoding, cb) => { | ||
// the state finished should start in false |
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.
Could you capitalize and punctuate the comment please.
Merged in f12338d |
Checklist
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passesAffected core subsystem(s)
test
Description of change
Issue related: #8686