-
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 common.fixturesDir with common.fixtures (https-foafssl.js) #15856
Conversation
Hi, @frkat! Welcome and thanks for this! Can you update this to use |
test/parallel/test-https-foafssl.js
Outdated
key: fs.readFileSync(`${common.fixturesDir}/agent.key`), | ||
cert: fs.readFileSync(`${common.fixturesDir}/agent.crt`), | ||
key: fs.readFileSync(`${fixtures.fixturesDir}/agent.key`), | ||
cert: fs.readFileSync(`${fixtures.fixturesDir}/agent.crt`), |
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 can be:
key: fixtures.readSync('agent.key'),
cert: fixtures.readSync('agent.crt')
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.
Indeed, thanks 👍
test/parallel/test-https-foafssl.js
Outdated
'-cert', join(common.fixturesDir, 'foafssl.crt'), | ||
'-key', join(common.fixturesDir, 'foafssl.key')]; | ||
'-cert', join(fixtures.fixturesDir, 'foafssl.crt'), | ||
'-key', join(fixtures.fixturesDir, 'foafssl.key')]; | ||
|
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 can be:
'-cert', fixtures.path('foafssl.crt'),
'-key', fixtures.path('foafssl.key')
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.
Indeed, thanks 👍
Updated the code, please check again - thanks! |
@@ -21,21 +21,20 @@ | |||
|
|||
'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: it would be great if you could move this after the common.skip()
checks.
Replace use of fixturesDir with fixtures.readSync and fixtures.path. PR-URL: nodejs#15856 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
Thanks for the contribution! 🎉 |
Replace use of fixturesDir with fixtures.readSync and fixtures.path. PR-URL: nodejs/node#15856 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
Replace use of fixturesDir with fixtures.readSync and fixtures.path. PR-URL: #15856 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
Replace use of fixturesDir with fixtures.readSync and fixtures.path. PR-URL: #15856 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
Replace use of fixturesDir with fixtures.readSync and fixtures.path. PR-URL: #15856 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
Replace use of fixturesDir with fixtures.readSync and fixtures.path. PR-URL: #15856 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)