Skip to content

test: add test for options validation of createServer - #30541

Closed
ZYSzys wants to merge 2 commits into
nodejs:masterfrom
zys-contrib:test-http2-createserver-options
Closed

test: add test for options validation of createServer#30541
ZYSzys wants to merge 2 commits into
nodejs:masterfrom
zys-contrib:test-http2-createserver-options

Conversation

@ZYSzys

@ZYSzysZYSzys commented Nov 19, 2019

Copy link
Copy Markdown
Member

test: add test for options validation of http2.createServer
and http2.createSecureServer

http2: remove duplicated assertIsObject
We have invoke initializeOptions(options) in Http2Server and Http2SecureServer's constructor, and we do assertIsObject(options, 'options') in initializeOptions(options), so the assertIsObject(options, 'options') in createServer and createSecureServer are duplicated.

functioninitializeOptions(options){
assertIsObject(options,'options');

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

@nodejs-github-botnodejs-github-bot added the test Issues and PRs related to the tests. label Nov 19, 2019
@ZYSzysZYSzys added the http2 Issues or PRs related to the http2 subsystem. label Nov 19, 2019
@nodejs-github-bot

This comment has been minimized.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

ZYSzys added a commit that referenced this pull request Nov 21, 2019
PR-URL: #30541
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
ZYSzys added a commit that referenced this pull request Nov 21, 2019
PR-URL: #30541
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
@ZYSzys

Copy link
Copy Markdown
MemberAuthor

Landed in 8138e9c...a7c13cf.

@ZYSzysZYSzys closed this Nov 21, 2019
@ZYSzys
ZYSzys deleted the test-http2-createserver-options branch November 21, 2019 09:33
MylesBorins pushed a commit that referenced this pull request Nov 21, 2019
PR-URL: #30541
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
MylesBorins pushed a commit that referenced this pull request Nov 21, 2019
PR-URL: #30541
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
@BridgeARBridgeAR mentioned this pull request Nov 21, 2019
targos pushed a commit that referenced this pull request Dec 1, 2019
PR-URL: #30541
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
targos pushed a commit that referenced this pull request Dec 1, 2019
PR-URL: #30541
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
@BethGriggsBethGriggs mentioned this pull request Dec 9, 2019
MylesBorins pushed a commit that referenced this pull request Dec 17, 2019
PR-URL: #30541
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
MylesBorins pushed a commit that referenced this pull request Dec 17, 2019
PR-URL: #30541
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
@BethGriggsBethGriggs mentioned this pull request Dec 23, 2019
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

http2Issues or PRs related to the http2 subsystem.testIssues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@ZYSzys@nodejs-github-bot@lpinca@cjihrig@BridgeAR