Skip to content

http2: use common.fixtures.fixturesDir in 304 tests#15839

Closed
klmarsh4 wants to merge 2 commits intonodejs:masterfrom
klmarsh4:test-http2-respond-file-304-fixturesDir-replace
Closed

http2: use common.fixtures.fixturesDir in 304 tests#15839
klmarsh4 wants to merge 2 commits intonodejs:masterfrom
klmarsh4:test-http2-respond-file-304-fixturesDir-replace

Conversation

@klmarsh4
Copy link

@klmarsh4 klmarsh4 commented Oct 6, 2017

replace common.fixturesDir with common.fixtures.fixturesDir

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

http2

@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label Oct 6, 2017
@klmarsh4 klmarsh4 changed the title http2: replace common.fixturesDir with common.fixtures.fixturesDir http2: use common.fixtures.fixturesDir in 304 tests Oct 6, 2017
Copy link
Contributor

@rmg rmg left a comment

Choose a reason for hiding this comment

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

Looks great! Thanks for the contribution!

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

@gibfahn gibfahn Oct 6, 2017

Choose a reason for hiding this comment

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

You should be able to use fixtures.path('elipses.txt') rather than the path.resolve(...), which would be even nicer. If you could push a new commit to your branch to add this change that'd be ideal.

Not mandatory though.

See the docs for more info: https://github.com/nodejs/node/blob/master/test/common/README.md#fixturespathargs

Copy link
Author

Choose a reason for hiding this comment

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

Oh, cool. Thanks for the heads up. I'll try and get a new commit up as soon as I get the chance.

Copy link
Member

@gireeshpunathil gireeshpunathil left a comment

Choose a reason for hiding this comment

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

LGTM upon addressing @gibfahn 's change request.

ekulnivek added 2 commits October 10, 2017 18:42
There is a helper function to do the path merging,
so it makes sense to use it
@klmarsh4 klmarsh4 force-pushed the test-http2-respond-file-304-fixturesDir-replace branch from 4604273 to 66a9fca Compare October 10, 2017 22:51
@lpinca
Copy link
Member

lpinca commented Oct 11, 2017

gireeshpunathil pushed a commit that referenced this pull request Oct 12, 2017
PR-URL: #15839
Reviewed-By: Ryan Graham <r.m.graham@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
@gireeshpunathil
Copy link
Member

Landed in 6b5433d. Thanks for the contribution!

addaleax pushed a commit to ayojs/ayo that referenced this pull request Oct 15, 2017
PR-URL: nodejs/node#15839
Reviewed-By: Ryan Graham <r.m.graham@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
targos pushed a commit that referenced this pull request Oct 18, 2017
PR-URL: #15839
Reviewed-By: Ryan Graham <r.m.graham@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
targos pushed a commit that referenced this pull request Oct 18, 2017
PR-URL: #15839
Reviewed-By: Ryan Graham <r.m.graham@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
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. http2 Issues or PRs related to the http2 subsystem. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants