MCPcopy Index your code
hub / github.com/nodejs/node / doTest

Function doTest

test/parallel/test-http2-too-many-settings.js:14–23  ·  view source on GitHub ↗
(session)

Source from the content-addressed store, hash-verified

12const maxOutstandingSettings = 2;
13
14function doTest(session) {
15 session.on('error', common.expectsError({
16 code: 'ERR_HTTP2_MAX_PENDING_SETTINGS_ACK',
17 name: 'Error'
18 }));
19 for (let n = 0; n < maxOutstandingSettings; n++) {
20 session.settings({ enablePush: false });
21 assert.strictEqual(session.pendingSettingsAck, true);
22 }
23}
24
25{
26 const server = h2.createServer({ maxOutstandingSettings });

Callers 1

Calls 2

settingsMethod · 0.80
onMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…