summaryrefslogtreecommitdiff
path: root/test/parallel/test-http2-util-update-options-buffer.js
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2017-12-18 14:55:16 -0800
committerJames M Snell <jasnell@gmail.com>2017-12-22 12:54:13 -0800
commitbbaea1236f9a788fcb3f76113dd0c3bae83a551b (patch)
tree40336c64222d30233f5a23b310e9c6b8ea3466da /test/parallel/test-http2-util-update-options-buffer.js
parent6100e12667429acad1827b6d918e512e55a7a6a7 (diff)
downloadandroid-node-v8-bbaea1236f9a788fcb3f76113dd0c3bae83a551b.tar.gz
android-node-v8-bbaea1236f9a788fcb3f76113dd0c3bae83a551b.tar.bz2
android-node-v8-bbaea1236f9a788fcb3f76113dd0c3bae83a551b.zip
http2: convert Http2Settings to an AsyncWrap
PR-URL: https://github.com/nodejs/node/pull/17763 Refs: https://github.com/nodejs/node/issues/17746 Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'test/parallel/test-http2-util-update-options-buffer.js')
-rw-r--r--test/parallel/test-http2-util-update-options-buffer.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/parallel/test-http2-util-update-options-buffer.js b/test/parallel/test-http2-util-update-options-buffer.js
index 4388d55682..c150f4767f 100644
--- a/test/parallel/test-http2-util-update-options-buffer.js
+++ b/test/parallel/test-http2-util-update-options-buffer.js
@@ -17,7 +17,8 @@ const IDX_OPTIONS_PEER_MAX_CONCURRENT_STREAMS = 3;
const IDX_OPTIONS_PADDING_STRATEGY = 4;
const IDX_OPTIONS_MAX_HEADER_LIST_PAIRS = 5;
const IDX_OPTIONS_MAX_OUTSTANDING_PINGS = 6;
-const IDX_OPTIONS_FLAGS = 7;
+const IDX_OPTIONS_MAX_OUTSTANDING_SETTINGS = 7;
+const IDX_OPTIONS_FLAGS = 8;
{
updateOptionsBuffer({
@@ -27,7 +28,8 @@ const IDX_OPTIONS_FLAGS = 7;
peerMaxConcurrentStreams: 4,
paddingStrategy: 5,
maxHeaderListPairs: 6,
- maxOutstandingPings: 7
+ maxOutstandingPings: 7,
+ maxOutstandingSettings: 8
});
strictEqual(optionsBuffer[IDX_OPTIONS_MAX_DEFLATE_DYNAMIC_TABLE_SIZE], 1);
@@ -37,6 +39,7 @@ const IDX_OPTIONS_FLAGS = 7;
strictEqual(optionsBuffer[IDX_OPTIONS_PADDING_STRATEGY], 5);
strictEqual(optionsBuffer[IDX_OPTIONS_MAX_HEADER_LIST_PAIRS], 6);
strictEqual(optionsBuffer[IDX_OPTIONS_MAX_OUTSTANDING_PINGS], 7);
+ strictEqual(optionsBuffer[IDX_OPTIONS_MAX_OUTSTANDING_SETTINGS], 8);
const flags = optionsBuffer[IDX_OPTIONS_FLAGS];
@@ -47,6 +50,7 @@ const IDX_OPTIONS_FLAGS = 7;
ok(flags & (1 << IDX_OPTIONS_PADDING_STRATEGY));
ok(flags & (1 << IDX_OPTIONS_MAX_HEADER_LIST_PAIRS));
ok(flags & (1 << IDX_OPTIONS_MAX_OUTSTANDING_PINGS));
+ ok(flags & (1 << IDX_OPTIONS_MAX_OUTSTANDING_SETTINGS));
}
{