test: replace common.fixturesDir with usage of common.fixtures module#15837
test: replace common.fixturesDir with usage of common.fixtures module#15837ParidelPooya wants to merge 2 commits intonodejs:masterfrom
Conversation
rmg
left a comment
There was a problem hiding this comment.
Thanks for the contribution!
| const options = { | ||
| key: fs.readFileSync(path.join(common.fixturesDir, 'test_key.pem')), | ||
| cert: fs.readFileSync(path.join(common.fixturesDir, 'test_cert.pem')) | ||
| key: fs.readFileSync(fixtures.path('test_key.pem')), |
There was a problem hiding this comment.
This could be cleaned up further by making use of fixtures.readSync() to replace the fs.readFileSuync and the path.join!
Something like key: fixtures.readSync('test_key.pem'),
There was a problem hiding this comment.
Thanks for the feedback, I changed my code, so now we don't need fs, path and also common.fixturesDir any more.
|
Welcome @ParidelPooya and thank you for the contribution 🥇 Quick CI: |
PR-URL: #15837 Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
|
Landed in d2c0978 |
PR-URL: #15837 Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
PR-URL: nodejs/node#15837 Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
PR-URL: #15837 Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
PR-URL: #15837 Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>
PR-URL: #15837 Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]>


In test/parallel/test-https-client-reject.js, replace common.fixturesDir with usage of the common.fixtures.