Skip to content

Conversation

@trivikr
Copy link
Member

@trivikr trivikr commented Oct 15, 2017

This commit add test case where priority() throws ERR_INVALID_OPT_VALUE when stream depends on itself

if (options.parent === stream[kID]) {
debug(`[${sessionName(this[kType])}] session still connecting. queue ` +
'priority');
throw new errors.TypeError('ERR_INVALID_OPT_VALUE',
'parent',
options.parent);
}

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

This commit add test case where priority() throws ERR_INVALID_OPT_VALUE
when stream depends on itself

Refs: nodejs#14985
@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label Oct 15, 2017
@lpinca lpinca added the http2 Issues or PRs related to the http2 subsystem. label Oct 15, 2017
@mcollina
Copy link
Member

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mcollina
Copy link
Member

failures are unrelated.

@mcollina
Copy link
Member

Landed as ff747e3

@mcollina mcollina closed this Oct 17, 2017
mcollina pushed a commit that referenced this pull request Oct 17, 2017
This commit add test case where priority() throws ERR_INVALID_OPT_VALUE
when stream depends on itself

Refs: #14985
PR-URL: #16224
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
addaleax pushed a commit to ayojs/ayo that referenced this pull request Oct 18, 2017
This commit add test case where priority() throws ERR_INVALID_OPT_VALUE
when stream depends on itself

Refs: nodejs/node#14985
PR-URL: nodejs/node#16224
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@trivikr trivikr deleted the test-http2-priority-parent branch October 22, 2017 21:56
MylesBorins pushed a commit that referenced this pull request Oct 23, 2017
This commit add test case where priority() throws ERR_INVALID_OPT_VALUE
when stream depends on itself

Refs: #14985
PR-URL: #16224
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
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.

7 participants