-
Notifications
You must be signed in to change notification settings - Fork 30k
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
test: increase coverage for stream writable #41486
Conversation
Because of the bug fix in #41433, this test will pass on the current master branch. However, prior that fix, the test here would result in an error:
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Landed in 8de858b |
Refs: nodejs#41433 (comment) PR-URL: nodejs#41486 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
Refs: #41433 (comment) PR-URL: #41486 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
Refs: nodejs#41433 (comment) PR-URL: nodejs#41486 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
@Trott for some reason this test is failing when I try to pull into v16.x-staging even though the dependent commit landed in the last 16.x. Do you mind taking a look? Thanks! This is the failure:
|
@danielleadams I haven't confirmed, but I think that test (as written, anyway) depends on #39364 (efd40ea) which is semver-major, so I think we can leave it out of 16.x and earlier. That commit reverts cleanly on master, so an easy way to test would be to do that revert and see if the test fails on master. Unfortunately, my workspace is in a state right now that compilation will take an hour or two. I'm going to try anyway. (Or maybe an easy shortcut to confirm is to ask @ronag.) |
Confirmed: Reverting efd40ea on master branch results in the test failing the same way: gitpod /workspace/io.js (master) $ ./node test/parallel/test-stream-writable-final-throw.js
node:assert:635
throw err;
^
AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
+ actual - expected
Comparison {
+ message: 'Cannot call end after a stream was destroyed'
- message: 'fhqwhgads'
}
at Array.<anonymous> (/workspace/io.js/test/common/index.js:618:12)
at Array.<anonymous> (/workspace/io.js/test/common/index.js:411:15)
at errorBuffer (node:internal/streams/writable:523:25)
at afterWrite (node:internal/streams/writable:502:5)
at afterWriteTick (node:internal/streams/writable:485:10)
at processTicksAndRejections (node:internal/process/task_queues:81:21) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: Error [ERR_STREAM_DESTROYED]: Cannot call end after a stream was destroyed
at new NodeError (node:internal/errors:372:5)
at errorBuffer (node:internal/streams/writable:523:26)
at afterWrite (node:internal/streams/writable:502:5)
at afterWriteTick (node:internal/streams/writable:485:10)
at processTicksAndRejections (node:internal/process/task_queues:81:21) {
code: 'ERR_STREAM_DESTROYED'
},
expected: { message: 'fhqwhgads' },
operator: 'throws'
}
Node.js v18.0.0-pre
gitpod /workspace/io.js (master) $ Before reverting, it had passed. So this is consistent with efd40ea being necessary for this test to pass. Since that commit will never land on 16.x, I think we can add the Does that sound right to you, @danielleadams? |
@Trott that makes sense to me. Thank you for investigating. |
Refs: #41433 (comment)