-
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: replace common.fixturesDir with fixtures.path() #16802
test: replace common.fixturesDir with fixtures.path() #16802
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.
LGTM with a suggestion.
@@ -14,8 +18,8 @@ const clientConfigs = [ | |||
]; | |||
|
|||
const serverConfig = { | |||
key: fs.readFileSync(`${common.fixturesDir}/keys/agent2-key.pem`), | |||
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent2-cert.pem`) | |||
key: fs.readFileSync(fixtures.path('/keys/agent2-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.
Can you use fixtures.readSync()
instead?
Thanks! some suggestions:
|
Fixed! Thanks for the quick feedback 👍 |
Replace common.fixturesDir with fixtures.readSync() in test-tls-getprotocol. PR-URL: nodejs#16802 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Rich Trott <[email protected]>
Landed in e232cd8. Thanks for the contribution! 🎉 |
Replace common.fixturesDir with fixtures.readSync() in test-tls-getprotocol. PR-URL: nodejs#16802 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Rich Trott <[email protected]>
Replace common.fixturesDir with fixtures.readSync() in test-tls-getprotocol. PR-URL: #16802 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Rich Trott <[email protected]>
Replace common.fixturesDir with fixtures.readSync() in test-tls-getprotocol. PR-URL: #16802 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Rich Trott <[email protected]>
Replace common.fixturesDir with fixtures.readSync() in test-tls-getprotocol. PR-URL: #16802 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Rich Trott <[email protected]>
Replace common.fixturesDir with fixtures.readSync() in test-tls-getprotocol. PR-URL: #16802 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Rich Trott <[email protected]>
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)