Skip to content

test: replace common.fixturesDir with usage of common.fixtures module - #15837

Closed
ParidelPooya wants to merge 2 commits into
nodejs:masterfrom
ParidelPooya:master
Closed

test: replace common.fixturesDir with usage of common.fixtures module#15837
ParidelPooya wants to merge 2 commits into
nodejs:masterfrom
ParidelPooya:master

Conversation

@ParidelPooya

Copy link
Copy Markdown
Contributor

In test/parallel/test-https-client-reject.js, replace common.fixturesDir with usage of the common.fixtures.

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

@rmgrmg 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.

Thanks for the contribution!

const options = {
key: fs.readFileSync(path.join(common.fixturesDir, 'test_key.pem')),
cert: fs.readFileSync(path.join(common.fixturesDir, 'test_cert.pem'))
key: fs.readFileSync(fixtures.path('test_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.

This could be cleaned up further by making use of fixtures.readSync() to replace the fs.readFileSuyncand the path.join!

Something like key: fixtures.readSync('test_key.pem'),

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Thanks for the feedback, I changed my code, so now we don't need fs, path and also common.fixturesDir any more.

@TrottTrott added the code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. label Oct 6, 2017
@mscdexmscdex added the https Issues or PRs related to the https subsystem. label Oct 6, 2017
@refack

Copy link
Copy Markdown
Contributor

Welcome @ParidelPooya and thank you for the contribution 🥇

Quick CI:
https://ci.nodejs.org/job/node-test-linter/12274/ ✔️
https://ci.nodejs.org/job/node-test-commit-linuxone/9058/ ✔️

@refackrefack self-assigned this Oct 6, 2017
refack pushed a commit that referenced this pull request Oct 7, 2017
PR-URL: #15837
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
@refack

Copy link
Copy Markdown
Contributor

Landed in d2c0978
@ParidelPooya congratulations on being promoted from
image
to
image

@refackrefack closed this Oct 7, 2017
MylesBorins pushed a commit that referenced this pull request Oct 11, 2017
PR-URL: #15837
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
@MylesBorinsMylesBorins mentioned this pull request Oct 11, 2017
addaleax pushed a commit to addaleax/ayo that referenced this pull request Oct 12, 2017
PR-URL: nodejs/node#15837
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
MylesBorins pushed a commit that referenced this pull request Nov 14, 2017
PR-URL: #15837
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
@MylesBorinsMylesBorins mentioned this pull request Nov 21, 2017
MylesBorins pushed a commit that referenced this pull request Nov 21, 2017
PR-URL: #15837
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
MylesBorins pushed a commit that referenced this pull request Nov 28, 2017
PR-URL: #15837
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
@refackrefack removed their assignment Oct 12, 2018
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code-and-learnIssues related to the Code-and-Learn events and PRs submitted during the events.httpsIssues or PRs related to the https subsystem.testIssues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants

@ParidelPooya@refack@rmg@benjamingr@cjihrig@gibfahn@mscdex@MylesBorins@Trott@nodejs-github-bot