-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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 fixturesdir use common.fixtures #15973
Conversation
@@ -13,7 +14,8 @@ const { | |||
HTTP2_HEADER_CONTENT_LENGTH | |||
} = http2.constants; | |||
|
|||
const fname = path.resolve(common.fixturesDir, 'elipses.txt'); | |||
const fname = path.resolve(fixtures.path(), 'elipses.txt'); |
There was a problem hiding this comment.
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.path
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, you mean instead of path.resolve? wanted to limit changes as fixtures.path uses path.join in the background rather than resolve. so: const fname = fixtures.path('elipses.txt');
Welcome @firesnapper and thank you for the contribution 🥇 Generally the change looks good, but as a result of it
https://ci.nodejs.org/job/node-test-linter/12313/ 🔺 |
thanks @refack, sorry for missing this. |
@firesnapper, no need to be sorry at all. |
const fs = require('fs'); | ||
|
||
const { | ||
HTTP2_HEADER_CONTENT_TYPE, | ||
HTTP2_HEADER_CONTENT_LENGTH | ||
} = http2.constants; | ||
|
||
const fname = path.resolve(common.fixturesDir, 'elipses.txt'); | ||
const fname = fixtures.path('elipses.txt'); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: This does not really need the newline IMO.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @tniessen I agree, removed now.
PR-URL: #15973 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Landed in 6e1948e |
PR-URL: #15973 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
PR-URL: nodejs/node#15973 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
test