-
Notifications
You must be signed in to change notification settings - Fork 31.2k
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
use fixtures #15805
use fixtures #15805
Conversation
@@ -11,8 +13,8 @@ const fs = require('fs'); | |||
const tests = []; | |||
|
|||
const serverOptions = { | |||
key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`), | |||
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`) | |||
key: fs.readFileSync(fixtures.path('/keys/agent1-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.
Consider using fixtures.readKey
instead of fs.readFileSync
to get the keys.
@pawelgolda how about now? Thanks! |
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.
Looks good to me, thanks!
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.
Does the linter complain about fs
being unused now?
Welcome @boutell and thank you for the contribution 🥇 The linter CI job found some lint in this PR:
Hope you find the time to follow up. |
@@ -1,6 +1,8 @@ | |||
'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? 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.
LGTM with @lpinca's suggestion.
Went ahead and fixed the nits on landing |
PR-URL: #15805 Reviewed-By: Ryan Graham <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
Landed in c29e366 |
Thanks for the adjustments!
…On Oct 12, 2017 10:12 PM, "James M Snell" ***@***.***> wrote:
Closed #15805 <#15805>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#15805 (comment)>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AAB9fURmWmkECETre06ZHlLitxzikR5aks5srscAgaJpZM4PwvVU>
.
|
PR-URL: nodejs/node#15805 Reviewed-By: Ryan Graham <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
PR-URL: #15805 Reviewed-By: Ryan Graham <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
src: use fixtures module
In test-https-server-keep-alive-timeout.js, replaced common.fixturesDir with use of the common.fixtures module as requested at nodejs interactive code & learn. Thanks!
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)