Uh oh!
There was an error while loading. Please reload this page.
test: increase coverage for stream writable - #41486
Conversation
Trott
commented
Jan 12, 2022
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.
nodejs-github-bot
commented
Jan 14, 2022
This comment has been minimized.
This comment has been minimized.
nodejs-github-bot
commented
Jan 17, 2022
Landed in 8de858b |
Refs: #41433 (comment) PR-URL: #41486 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
@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: |
Trott
commented
Feb 28, 2022
@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.) |
Trott
commented
Feb 28, 2022
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-pregitpod /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? |
danielleadams
commented
Feb 28, 2022
@Trott that makes sense to me. Thank you for investigating. |
Refs: #41433 (comment)