test:replace common.fixturesDir with commonfixtures#15832
test:replace common.fixturesDir with commonfixtures#15832feons wants to merge 3 commits intonodejs:masterfrom
Conversation
rmg
left a comment
There was a problem hiding this comment.
Thanks for the contribution!
| cert: fs.readFileSync(`${common.fixturesDir}/test_cert.pem`), | ||
| key: fs.readFileSync(`${common.fixturesDir}/test_key.pem`) | ||
| cert: fs.readFileSync(fixtures.path('test_cert.pem')), | ||
| key: fs.readFileSync(fixtures.path('test_key.pem')) |
There was a problem hiding this comment.
The fixtures module has a helper that make this even simpler! Check out fixtures.readSync().
That should let you do key: fixtures.readSync('test_key.pem') instead.
|
@rmg, updated according to your comment. Thank you! |
gireeshpunathil
left a comment
There was a problem hiding this comment.
@feons - if you could remove the extra line at L34?
|
@gireeshpunathil, fixed style. Thanks! |
PR-URL: #15832 Reviewed-By: Ryan Graham <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Ruben Bridgewater <[email protected]>
|
Landed in fc94eef |
PR-URL: #15832 Reviewed-By: Ryan Graham <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
|
Corrected the commit message and re-landed in 03550a5 |
|
Unfortunately, CI was never run on the subsequent changes (after the first CI) and this fails the linter. Is someone already on fast-tracking a fix for this? |
Fix lint error introduced 03550a5c1e. Unused module `fs` is removed. Refs: nodejs#15832 (comment)
|
Fix to minor issue in #16145 |
Fix lint error introduced 03550a5c1e. Unused module `fs` is removed. PR-URL: nodejs#16145 Ref: nodejs#15832 (comment) Reviewed-By: Bradley Farias <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
PR-URL: nodejs/node#15832 Reviewed-By: Ryan Graham <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
Fix lint error introduced 03550a5c1e. Unused module `fs` is removed. PR-URL: nodejs/node#16145 Ref: nodejs/node#15832 (comment) Reviewed-By: Bradley Farias <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
|
@Trott - probably I overlooked at the CI. Thanks for addressing it! |
PR-URL: #15832 Reviewed-By: Ryan Graham <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
Fix lint error introduced 03550a5c1e. Unused module `fs` is removed. PR-URL: #16145 Ref: #15832 (comment) Reviewed-By: Bradley Farias <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
Replace
common.fixturesDirwith usage of thecommon.fixturesmoduleChecklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)