test: http2 priority stream depends on itself
This commit add test case where priority() throws ERR_INVALID_OPT_VALUE when stream depends on itself https://github.com/nodejs/node/blob/411695e1d26565c7498992be19731bbea6b6aa58/lib/internal/http2/core.js#L893-L899
Refs: https://github.com/nodejs/node/issues/14985
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
test, http2