FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test: replace common.fixturesDir with fixtures.path() by AdriVanHoudt · Pull Request #16802 · nodejs/node · GitHub

/ node Public

test: replace common.fixturesDir with fixtures.path() - #16802

Closed
AdriVanHoudt wants to merge 2 commits into
nodejs:masterfrom
AdriVanHoudt:test-tls-protocol-fixtures
Closed

test: replace common.fixturesDir with fixtures.path()#16802
AdriVanHoudt wants to merge 2 commits into
nodejs:masterfrom
AdriVanHoudt:test-tls-protocol-fixtures

Conversation

AdriVanHoudt commented Nov 6, 2017
edited
Loading

Copy link
Copy Markdown
Contributor
Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

nodejs-github-bot added the test Issues and PRs related to the tests. label Nov 6, 2017

cjihrig left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM with a suggestion.

Comment thread test/parallel/test-tls-getprotocol.js Outdated
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')),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Can you use fixtures.readSync() instead?

Copy link
Copy Markdown
Member

Thanks! some suggestions:

  1. There is a fixtures.readSync() function that you can use instead of fs.readFileSync() that directly reads from the fixtures.path.

  2. Once you do that you may eliminate the need for fs module. (else linter breaks)

  3. You may untick tests and/or benchmarks are included option in the description, as you did not include any new.

Copy link
Copy Markdown
Contributor Author

Fixed! Thanks for the quick feedback 👍

mscdex added the tls Issues and PRs related to the tls subsystem. label Nov 6, 2017

Trott commented Nov 6, 2017

Copy link
Copy Markdown
Member

Trott added the code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. label Nov 6, 2017
Trott pushed a commit to Trott/io.js that referenced this pull request Nov 6, 2017
Replace common.fixturesDir with fixtures.readSync() in
test-tls-getprotocol.

PR-URL: nodejs#16802
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>

Trott commented Nov 6, 2017

Copy link
Copy Markdown
Member

Landed in e232cd8.

Thanks for the contribution! 🎉

Trott closed this Nov 6, 2017
AdriVanHoudt deleted the test-tls-protocol-fixtures branch November 6, 2017 17:49
cjihrig pushed a commit to cjihrig/node that referenced this pull request Nov 6, 2017
Replace common.fixturesDir with fixtures.readSync() in
test-tls-getprotocol.

PR-URL: nodejs#16802
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
cjihrig mentioned this pull request Nov 6, 2017
MylesBorins pushed a commit that referenced this pull request Nov 16, 2017
Replace common.fixturesDir with fixtures.readSync() in
test-tls-getprotocol.

PR-URL: #16802
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
MylesBorins pushed a commit that referenced this pull request Nov 16, 2017
Replace common.fixturesDir with fixtures.readSync() in
test-tls-getprotocol.

PR-URL: #16802
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
MylesBorins mentioned this pull request Nov 21, 2017
gibfahn mentioned this pull request Nov 21, 2017
MylesBorins pushed a commit that referenced this pull request Nov 21, 2017
Replace common.fixturesDir with fixtures.readSync() in
test-tls-getprotocol.

PR-URL: #16802
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
MylesBorins pushed a commit that referenced this pull request Nov 28, 2017
Replace common.fixturesDir with fixtures.readSync() in
test-tls-getprotocol.

PR-URL: #16802
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. test Issues and PRs related to the tests. tls Issues and PRs related to the tls subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants


Back | FazBrowse Home | New Git URL