test: http2 stored settings returned when present
Refs: #14985 PR-URL: https://github.com/nodejs/node/pull/15751 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
3aea4c884b
commit
fabd618eef
@ -22,8 +22,14 @@ function assertSettings(settings) {
|
|||||||
|
|
||||||
function onStream(stream, headers, flags) {
|
function onStream(stream, headers, flags) {
|
||||||
|
|
||||||
assertSettings(stream.session.localSettings);
|
const localSettings = stream.session.localSettings;
|
||||||
assertSettings(stream.session.remoteSettings);
|
const remoteSettings = stream.session.remoteSettings;
|
||||||
|
assertSettings(localSettings);
|
||||||
|
assertSettings(remoteSettings);
|
||||||
|
|
||||||
|
// Test that stored settings are returned when called for second time
|
||||||
|
assert.strictEqual(stream.session.localSettings, localSettings);
|
||||||
|
assert.strictEqual(stream.session.remoteSettings, remoteSettings);
|
||||||
|
|
||||||
stream.respond({
|
stream.respond({
|
||||||
'content-type': 'text/html',
|
'content-type': 'text/html',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user