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

test: replace commom.fixturesDir with common.fixtures #15967

Closed
wants to merge 2 commits into from

Conversation

komivi-ps
Copy link

@komivi-ps komivi-ps commented Oct 6, 2017

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)

test

@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label Oct 6, 2017
@@ -5,8 +5,8 @@ const assert = require('assert');
const fs = require('fs');
const path = require('path');

const fn = path.join(common.fixturesDir, 'elipses.txt');
const rangeFile = path.join(common.fixturesDir, 'x.txt');
const fn = path.join(common.fixtures, 'elipses.txt');
Copy link
Contributor

Choose a reason for hiding this comment

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

This one would fail tests as common module does not export fixtures. Have a look at test/common/fixtures.js module and use fixtures.path.

Copy link
Member

Choose a reason for hiding this comment

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

Correct, the change here should be:

const fixtures = require('../common/fixtures');

then...

const fn = fixtures.path('elipses.txt');
const rangeFile = fixtures.path('x.txt');

@mscdex mscdex added the fs Issues and PRs related to the fs subsystem / file system. 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
@jasnell
Copy link
Member

jasnell commented Oct 9, 2017

Thank you so much for participating in the code and learn and for the contribution. There are a couple of additional edits that are necessary as explained in the comments. Those can be made by adding a new commit to your development branch and pushing those to your fork.

@gireeshpunathil
Copy link
Member

@jasnell - PTAL

@gireeshpunathil
Copy link
Member

@Trott
Copy link
Member

Trott commented Oct 13, 2017

CI is showing green, but no tests were actually run. Something is not working on CI. Will have to run again after it's fixed. ping @nodjes/build (I'll leave this comment on all the other PRs that this affects as of now, but I won't ping build on each one.)

@jasnell
Copy link
Member

jasnell commented Oct 13, 2017

@joyeecheung
Copy link
Member

CI failures are unrelated. Landed in 9aa41cb, thanks for the contribution!

joyeecheung pushed a commit that referenced this pull request Oct 14, 2017
PR-URL: #15967
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
addaleax pushed a commit to ayojs/ayo that referenced this pull request Oct 15, 2017
PR-URL: nodejs/node#15967
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
targos pushed a commit that referenced this pull request Oct 18, 2017
PR-URL: #15967
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
MylesBorins pushed a commit that referenced this pull request Nov 16, 2017
PR-URL: #15967
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
@MylesBorins MylesBorins mentioned this pull request Nov 21, 2017
MylesBorins pushed a commit that referenced this pull request Nov 21, 2017
PR-URL: #15967
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
MylesBorins pushed a commit that referenced this pull request Nov 28, 2017
PR-URL: #15967
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
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. fs Issues and PRs related to the fs subsystem / file system. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.