Skip to content

Commit

Permalink
test: http2 stored settings returned when present
Browse files Browse the repository at this point in the history
Refs: #14985
PR-URL: #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>
  • Loading branch information
trivikr authored and mcollina committed Oct 7, 2017
1 parent 3aea4c8 commit fabd618
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/parallel/test-http2-session-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,14 @@ function assertSettings(settings) {

function onStream(stream, headers, flags) {

assertSettings(stream.session.localSettings);
assertSettings(stream.session.remoteSettings);
const localSettings = stream.session.localSettings;
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({
'content-type': 'text/html',
Expand Down

0 comments on commit fabd618

Please sign in to comment.