Uh oh!
There was an error while loading. Please reload this page.
test: use common.fixturesDir almost everywhere - #6997
Conversation
There was a problem hiding this comment.
Can you do this: path.join(common.fixturesDir, 'global', 'plain')
jasnell
commented
May 26, 2016
LGTM with @cjihrig's nits addressed. |
bengl
commented
May 26, 2016
@cjihrig Ok, Also, CI: https://ci.nodejs.org/job/node-test-pull-request/2814/ |
Fishrock123
commented
May 27, 2016
CI doesn't seem happy. I see errors besides the regular address failures in there. Concept seems fine though. |
There was a problem hiding this comment.
It's a nit so you can ignore it, of course, but if you do want to const-ify common here, you can also do it in the other files too. (Looks like you used var where the file was doing that for other modules and const where it was already using that. Which is also just fine. Like I said: nit.)
There was a problem hiding this comment.
Right, I kept with whatever was being used in the file, for least-confusion/impact.
I think const-ifying tests makes more sense in separate PR(s)/commit(s). SGTY?
At least some of the CI problems look like things that might be addressed by a9492f5 which isn't in this branch (and the CI wasn't run to rebase against master--aside: should we change that to be the default in node-test-pull-request?). In short, rebase against master might help with the CI results a bit. EDIT: Whoops, used the wrong commit hash, updated it. But if you clicked on it in your email and got a puzzling result, that's why. |
There was a problem hiding this comment.
Can you make 'syntax' and 'bad_syntax' separate arguments.
cjihrig
commented
May 27, 2016
LGTM pending nits and the CI. |
Updating tests to use `common.fixturesDir` whenever possible/reasonable. Left out things like tests for `path` and `require.resolve`.
bengl
commented
May 27, 2016
Alright, nits addressed and new CI: https://ci.nodejs.org/job/node-test-pull-request/2828/ |
Trott
commented
May 27, 2016
Looks like FreeBSD on CI might have a stray process hogging One more CI run because the last two have been Not Good: https://ci.nodejs.org/job/node-test-pull-request/2829/ |
cjihrig
commented
Jun 1, 2016
One more time. CI: https://ci.nodejs.org/job/node-test-pull-request/2896/ |
cjihrig
commented
Jun 2, 2016
@bengl the CI is green. Feel free to move forward with this. |
Updating tests to use `common.fixturesDir` whenever possible/reasonable. Left out things like tests for `path` and `require.resolve`. PR-URL: #6997 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
bengl
commented
Jun 6, 2016
Landed in cc2a88a |
Updating tests to use `common.fixturesDir` whenever possible/reasonable. Left out things like tests for `path` and `require.resolve`. PR-URL: #6997 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
MylesBorins
commented
Jul 11, 2016
@bengl would you be willing to backport to v4.x? |
MylesBorins
commented
Aug 30, 2016
ping @bengl |
MylesBorins
commented
Oct 10, 2016
I'm going to label this don't land. @bengl please feel free to backport |
Updating tests to use `common.fixturesDir` whenever possible/reasonable. Left out things like tests for `path` and `require.resolve`. PR-URL: #6997 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Updating tests to use `common.fixturesDir` whenever possible/reasonable. Left out things like tests for `path` and `require.resolve`. PR-URL: #6997 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Updating tests to use `common.fixturesDir` whenever possible/reasonable. Left out things like tests for `path` and `require.resolve`. PR-URL: #6997 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Updating tests to use `common.fixturesDir` whenever possible/reasonable. Left out things like tests for `path` and `require.resolve`. PR-URL: #6997 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Checklist
Affected core subsystem(s)
test
Description of change
Updating tests to use
common.fixturesDirwhenever possible/reasonable.Left out things like tests for
pathandrequire.resolve.