-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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: changed common.fixturesDir to use common.fixtures module #15904
Conversation
test/parallel/test-fs-realpath.js
Outdated
@@ -185,7 +186,7 @@ function test_deep_relative_dir_symlink(callback) { | |||
common.printSkipMessage('symlink test (no privs)'); | |||
return runNextTest(); | |||
} | |||
const expected = path.join(common.fixturesDir, 'cycles', 'folder'); | |||
const expected = path.join(fixtures.fixturesDir, 'cycles', 'folder'); |
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.
There is the fixtures.path
function for this and it would be nice to use that instead.
test/parallel/test-fs-realpath.js
Outdated
@@ -156,7 +157,7 @@ function test_deep_relative_file_symlink(callback) { | |||
return runNextTest(); | |||
} | |||
|
|||
const expected = path.join(common.fixturesDir, 'cycles', 'root.js'); | |||
const expected = path.join(fixtures.fixturesDir, 'cycles', 'root.js'); |
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.
Can you change this to const expected = fixtures.path('cycles', 'root.js')
?
test/parallel/test-fs-realpath.js
Outdated
@@ -185,7 +186,7 @@ function test_deep_relative_dir_symlink(callback) { | |||
common.printSkipMessage('symlink test (no privs)'); | |||
return runNextTest(); | |||
} | |||
const expected = path.join(common.fixturesDir, 'cycles', 'folder'); | |||
const expected = path.join(fixtures.fixturesDir, 'cycles', 'folder'); |
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.
Can you change this to const expected = fixtures.path('cycles', 'folder')
?
Ping @RaphaelRheault |
Hi @RaphaelRheault, would you like to follow up on this so that it can land? A few small changes were requested above — let me know if you need any pointers. Thanks for helping us improve Node! |
I fixed the nits and force-pushed. This should be good to go. PTAL. |
Landed in 6ff2909, thank you! 🎉 |
PR-URL: #15904 Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
PR-URL: #15904 Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
PR-URL: #15904 Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
PR-URL: #15904 Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
PR-URL: nodejs/node#15904 Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
PR-URL: nodejs/node#15904 Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
PR-URL: #15904 Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
PR-URL: #15904 Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
PR-URL: #15904 Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
PR-URL: nodejs/node#15904 Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
Done at Code & Learn for Node.js Interactive Vancouver
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)