diff --git a/test/parallel/test-http2-session-settings.js b/test/parallel/test-http2-session-settings.js index 53dff5b139..4fa27e0b3d 100644 --- a/test/parallel/test-http2-session-settings.js +++ b/test/parallel/test-http2-session-settings.js @@ -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',