Skip to content
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

updated test-http-get-pipeline-problem.js to use fixtures module #15842

Closed
wants to merge 0 commits into from

Conversation

NigelKibodeaux
Copy link
Contributor

Instead of building a path to a fixture using the fixturesDir property of the common module, this change will use the fixtures.path() function to build that path.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

test

@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label Oct 6, 2017
@@ -32,7 +33,7 @@ http.globalAgent.maxSockets = 1;

common.refreshTmpDir();

const image = fs.readFileSync(`${common.fixturesDir}/person.jpg`);
const image = fs.readFileSync(fixtures.path('/person.jpg'));
Copy link
Contributor

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.readSync instead of fs.readFileSync and fixtures.path.

@mscdex mscdex added the http Issues or PRs related to the http subsystem. label Oct 6, 2017
@Trott Trott added the code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. label Oct 7, 2017
@Trott Trott closed this Oct 10, 2017
@Trott
Copy link
Member

Trott commented Oct 10, 2017

Hmmm...I was trying to rebase out some extraneous commits and it closed the PR. I'll see if I can fix this...

@Trott
Copy link
Member

Trott commented Oct 10, 2017

Continued at #16117

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. http Issues or PRs related to the http subsystem. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants