-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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: use common.fixtures #15965
Test: use common.fixtures #15965
Conversation
e9cd496
to
6a98d26
Compare
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 actually a dedicated function to load the keys directly (readKey
). Please use that instead.
@BridgeAR done! Note: something that is slightly confusing in this context is that |
|
||
const buf = Buffer.allocUnsafe(10000); | ||
let received = 0; | ||
const maxChunk = 768; | ||
|
||
const server = tls.createServer({ | ||
key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`), | ||
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`) | ||
key: fixtures.readKey('/agent1-key.pem'), |
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.
I think you can drop the leading slashes.
@obensource Certificates are essentially keys with some metadata, so it is kind of an abstraction. |
@tniessen rad, that makes sense. Thanks! 🍻 |
@joyeecheung fyi CI 10485 failure here:
Related to reopened issue: #13020 Not something to additionally address in this tls test PR I'd guess–hence approval? Edited by Trott for formatting. |
PR-URL: #15965 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
Landed in 17857d4 Thanks for the PR, and congratulations on becoming a Node.js Contributor 🎉 ! |
@BridgeAR Wahoo! Thank you! 🎉🎉🎉 So excited to jump in–thanks for reviewing! 😎 |
PR-URL: #15965 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
PR-URL: nodejs/node#15965 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
PR-URL: #15965 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
PR-URL: #15965 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
PR-URL: #15965 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
Replaces use of
common.fixturesDir
withcommon.fixtures
module intest/parallel/test-tls-max-send-fragment.js
.Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes