test: Updates to test-stream2-unpipe-drain#10033
test: Updates to test-stream2-unpipe-drain#10033storytimesolutions wants to merge 1 commit intonodejs:masterfrom
Conversation
There was a problem hiding this comment.
This require() could move down below the common.hasCrypto check.
There was a problem hiding this comment.
Updates made per recommendation.
There was a problem hiding this comment.
This is incorrect. common.mustCall() should be added prior to the process.on('exit', ...) handler.
There was a problem hiding this comment.
@storytimesolutions If you want to make this land-able quickly, you can remove the common.mustCall() additions and restore the assert.equal() statements but use assert.strictEqual() instead.
In thie particular case, the common.mustCall() approach (which is generally preferred) is a bit trickier than it usually is.
|
@Trott Thanks for the advice. Implemented. |
|
@cjihrig Code has been changed to address your comment. PTAL at your convenience and update your review if appropriate. Thanks! |
|
@storytimesolutions This code fails hard because the |
There was a problem hiding this comment.
If this isn't using crypto to push data to the stream, the common.hasCrypto check is still needed?
|
...and the assertions are comparing functions to integers, so the assertions will always fire... |
1. Change var to const 2. Remove dependency crypto
da86dab to
f04fb60
Compare
|
Since the fixes were relatively small, I went ahead and made them and pushed them to this PR. Hope that's OK, @storytimesolutions! @cjihrig Can you confirm that this corrects the issues you flagged and, if so, please update your review? Thanks! New CI: https://ci.nodejs.org/job/node-test-pull-request/5611/ |
|
Landed 627fa93 |
- Change var to const - Remove dependency crypto PR-URL: #10033 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
- Change var to const - Remove dependency crypto PR-URL: #10033 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
- Change var to const - Remove dependency crypto PR-URL: #10033 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
- Change var to const - Remove dependency crypto PR-URL: #10033 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
- Change var to const - Remove dependency crypto PR-URL: #10033 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
- Change var to const - Remove dependency crypto PR-URL: #10033 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
- Change var to const - Remove dependency crypto PR-URL: #10033 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
- Change var to const - Remove dependency crypto PR-URL: #10033 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
- Change var to const - Remove dependency crypto PR-URL: #10033 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
- Change var to const - Remove dependency crypto PR-URL: #10033 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Checklist
make -j8 test(UNIX), orvcbuild test nosign(Windows) passesAffected core subsystem(s)
Description of change