-
Notifications
You must be signed in to change notification settings - Fork 30k
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: replaced fixturesDir with common.fixtures module #15836
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 making Node.js better!
@@ -12,8 +13,8 @@ const tls = require('tls'); | |||
|
|||
const options = { | |||
secureOptions: SSL_OP_NO_TICKET, | |||
key: fs.readFileSync(path.join(common.fixturesDir, 'test_key.pem')), | |||
cert: fs.readFileSync(path.join(common.fixturesDir, 'test_cert.pem')) | |||
key: fs.readFileSync(path.join(fixtures.fixturesDir, '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.
This could be cleaned up further by making use of fixtures.readSync()
to replace the fs.readFileSuync
and the path.join
!
Something like 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.
Ahh thanks for pointing that out, will make changes now.
fd41c22
to
db07d1f
Compare
should I squash the commit's into one or is this okay? |
@dtoki technically whoever lands it could take care of that, but if you've got the time/energy it's highly appreciated :-) |
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.
@@ -1,19 +1,16 @@ | |||
'use strict'; | |||
|
|||
const common = require('../common'); | |||
const fixtures = require('../common/fixtures'); |
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.
Nit: can you please move this after the common.hasCrypto
check?
Landed in c42cdd4 with #15836 (review) fixed. Thanks for the contribution! |
PR-URL: #15836 Reviewed-By: Lance Ball <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
PR-URL: nodejs/node#15836 Reviewed-By: Lance Ball <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
PR-URL: #15836 Reviewed-By: Lance Ball <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
PR-URL: #15836 Reviewed-By: Lance Ball <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
PR-URL: #15836 Reviewed-By: Lance Ball <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
PR-URL: #15836 Reviewed-By: Lance Ball <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)