Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

trivikr
Copy link
Member

@trivikr trivikr commented Oct 4, 2017

This PR adds unit tests for testing ERR_INVALID_ARG_TYPE errors in priority() and rstStream()

Refs: #14985

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

test, http2

@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label Oct 4, 2017
@hiroppy hiroppy added the http2 Issues or PRs related to the http2 subsystem. label Oct 4, 2017
// Error if options are not passed to createSecureServer
invalidOptions.forEach((invalidOption) =>
common.expectsError(
() => http2.createSecureServer(() => invalidOption),
Copy link
Member

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.

Copy link
Member Author

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.

@trivikr trivikr force-pushed the test-http2-invalid-arg-type branch from 50afc20 to d06ea66 Compare October 5, 2017 09:00
@trivikr trivikr force-pushed the test-http2-invalid-arg-type branch from d06ea66 to 7a82fbc Compare October 9, 2017 00:59
@trivikr
Copy link
Member Author

trivikr commented Oct 9, 2017

rebased with upstream/master

@joyeecheung
Copy link
Member

jasnell pushed a commit that referenced this pull request Oct 16, 2017
PR-URL: #15766
Ref: #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>
@jasnell
Copy link
Member

jasnell commented Oct 16, 2017

Landed in 0ce6be0

@jasnell jasnell closed this Oct 16, 2017
addaleax pushed a commit to ayojs/ayo that referenced this pull request Oct 18, 2017
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>
MylesBorins pushed a commit that referenced this pull request Oct 23, 2017
PR-URL: #15766
Ref: #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>
@trivikr trivikr deleted the test-http2-invalid-arg-type branch February 8, 2018 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
http2 Issues or PRs related to the http2 subsystem. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants