-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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:replace common.fixturesDir with commonfixtures #15832
Conversation
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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! |
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.
@feons - if you could remove the extra line at L34?
@gireeshpunathil, fixed style. Thanks! |
PR-URL: #15832 Reviewed-By: Ryan Graham <r.m.graham@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Ruben Bridgewater <ruben@bridgewater.de>
Landed in fc94eef |
PR-URL: #15832 Reviewed-By: Ryan Graham <r.m.graham@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
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 <bradley.meck@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
PR-URL: nodejs/node#15832 Reviewed-By: Ryan Graham <r.m.graham@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Fix lint error introduced 03550a5c1e. Unused module `fs` is removed. PR-URL: nodejs/node#16145 Ref: nodejs/node#15832 (comment) Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
@Trott - probably I overlooked at the CI. Thanks for addressing it! |
PR-URL: #15832 Reviewed-By: Ryan Graham <r.m.graham@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Fix lint error introduced 03550a5c1e. Unused module `fs` is removed. PR-URL: #16145 Ref: #15832 (comment) Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Replace
common.fixturesDir
with usage of thecommon.fixtures
moduleChecklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)