We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6642f54 commit bd49adaCopy full SHA for bd49ada
test/parallel/test-http2-session-settings.js
@@ -23,8 +23,14 @@ function assertSettings(settings) {
23
24
function onStream(stream, headers, flags) {
25
26
- assertSettings(stream.session.localSettings);
27
- assertSettings(stream.session.remoteSettings);
+ const localSettings = stream.session.localSettings;
+ const remoteSettings = stream.session.remoteSettings;
28
+ assertSettings(localSettings);
29
+ assertSettings(remoteSettings);
30
+
31
+ // Test that stored settings are returned when called for second time
32
+ assert.strictEqual(stream.session.localSettings, localSettings);
33
+ assert.strictEqual(stream.session.remoteSettings, remoteSettings);
34
35
stream.respond({
36
'content-type': 'text/html',
0 commit comments