-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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 fixturesDir in tls-connect-no-host #15986
Conversation
const cert = fs.readFileSync(path.join(common.fixturesDir, 'test_cert.pem')); | ||
const key = fs.readFileSync(path.join(common.fixturesDir, 'test_key.pem')); | ||
const cert = fs.readFileSync(fixtures.path('test_cert.pem')); | ||
const 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.
Hello @dtex ! This is good but can be made even better using fixtures.readSync
, e.g.
const cert = fixtures.readSync('test_cert.pem');
const key = fixtures.readSync('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.
Thanks for pointing me to that. I've made that update.
I went ahead and amended the existing commit rather than add a second for such a small change. I hope that's okay.
@joyeecheung Is that something I need to take action on? |
@dtex ... nope! That's just our testing run. It's there for record keeping purposes. |
PR-URL: #15986 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Landed in c0bba73. Thank you for the contribution and for participating in the code and learn! |
PR-URL: nodejs/node#15986 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: #15986 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: #15986 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: #15986 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: #15986 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
test: replace fixturesDir in test-tls-connect-no-host.js
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
test