-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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: http2 ERR_INVALID_ARG_TYPE tests #15766
Conversation
// Error if options are not passed to createSecureServer | ||
invalidOptions.forEach((invalidOption) => | ||
common.expectsError( | ||
() => http2.createSecureServer(() => invalidOption), |
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.
The first argument of http2.createSecureServer()
should be invalidOption
or we only check that a function is not a valid argument.
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.
Thanks for the catch @lpinca
I've corrected it.
50afc20
to
d06ea66
Compare
d06ea66
to
7a82fbc
Compare
rebased with upstream/master |
Landed in 0ce6be0 |
PR-URL: nodejs/node#15766 Ref: nodejs/node#14985 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This PR adds unit tests for testing ERR_INVALID_ARG_TYPE errors in priority() and rstStream()
Refs: #14985
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
test, http2