-
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: common.fixturesDir --> common.fixtures #15976
test: common.fixturesDir --> common.fixtures #15976
Conversation
Replaced `common.fixturesDir` with usage of `common.fixtures` module in `test/parallel/test-tls-delayed-atach.js`. Checklist [*] `make -j4 test` (UNIX), or `vcbuild test` (Windows) passes
const net = require('net'); | ||
|
||
const sent = 'hello world'; | ||
let received = ''; | ||
|
||
const options = { | ||
key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`), | ||
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`) | ||
key: fixtures.readSync('/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.
This could be using method fixtures.readKey
instead to get the keys.
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 needs a rebase and a force push before this can be landed (there are merge commits in here). LGTM otherwise.
@@ -24,17 +24,18 @@ const common = require('../common'); | |||
if (!common.hasCrypto) | |||
common.skip('missing crypto'); | |||
|
|||
|
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 nice not to have any unrelated changes and if this could be changed back again.
Hi @camantigue — are you still interested in pursuing this? It looks like there's a bit of feedback from @BridgeAR & @pawelgolda that needs to be addressed. Let us know if you need any pointers :) |
Hi @apapirovski - I'm still interested in updating the changes. Is it just re-doing it without the merge commits? Or is it also preferred to use |
@camantigue Ideally we would update to use |
Utilized the fixtures module's readKey function instead of readSync and removed an unnecessary line of space.
const net = require('net'); | ||
|
||
const sent = 'hello world'; | ||
let received = ''; | ||
|
||
const options = { | ||
key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`), | ||
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`) | ||
key: fixtures.readKey('/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.
This actually doesn't need /keys/
because the readKey
already knows where to look.
If you're having trouble rebasing this, let us know. Since some of these merges are quite far in the past you might need to go quite far in history for your |
Hi @apapirovski - How can I go about rebasing this? I don't think I've had experience doing that. Making the changes for the |
Removed `/keys/` from the key file path string as the readKey function handles that for you.
First, you need to add the upstream remote, fetch our current master and checkout your branch. Skip this section if you already did this:
To rebase, do this:
If you run into problems while rebasing due to the merge commits, you can also cherry-pick your changes:
|
Landed in c4c6381, thank you for the contribution! |
PR-URL: #15976 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Hi @camantigue, the email that you used when authoring the commit is not added to your github account, so you are not promoted to "Contributor" after the commit landed. If you want the promotion, please add your email to your github account (the commit email is |
Hi @joyeecheung this account (@camantigue) has my e-mail set as |
@camantigue I think you can put a dummy email in |
Hey @joyeecheung I just changed the e-mail and it looks like the icons changed to my |
@camantigue looks like GitHub noticed, and updated accordingly, congratulations on becoming a contributor to Node.js! |
PR-URL: #15976 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
PR-URL: nodejs/node#15976 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
PR-URL: #15976 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
PR-URL: #15976 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
PR-URL: #15976 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
PR-URL: nodejs/node#15976 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Replaced
common.fixturesDir
with usage ofcommon.fixtures
module intest/parallel/test-tls-delayed-atach.js
.Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes