Skip to content
This repository was archived by the owner on Jul 6, 2018. It is now read-only.

Commit 7431f0a

Browse files
mcollinajasnell
authored andcommitted
http2: fix test-http2-binding after round 11 (Squash)
PR-URL: #65 Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 6404b0d commit 7431f0a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/parallel/test-http2-binding.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ assert(http2.SessionShutdownWrap);
1313
assert.strictEqual(typeof http2.Http2Session, 'function');
1414
assert.strictEqual(typeof http2.SessionShutdownWrap, 'function');
1515

16-
const settings = http2.getDefaultSettings({});
16+
const settings = require('http2').getDefaultSettings();
1717
assert.strictEqual(settings.headerTableSize, 4096);
1818
assert.strictEqual(settings.enablePush, true);
1919
assert.strictEqual(settings.initialWindowSize, 65535);
@@ -25,10 +25,9 @@ assert.strictEqual(http2.nghttp2ErrorString(-517),
2525
const check = Buffer.from([0x00, 0x01, 0x00, 0x00, 0x10, 0x00, 0x00, 0x04,
2626
0x00, 0x00, 0xff, 0xff, 0x00, 0x05, 0x00, 0x00,
2727
0x40, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x01]);
28-
const val = http2.packSettings(http2.getDefaultSettings({}));
28+
const val = http2.packSettings(require('http2').getDefaultSettings());
2929
assert.deepStrictEqual(val, check);
3030

31-
assert.doesNotThrow(() => assert(require('http2').getDefaultSettings()));
3231
assert.doesNotThrow(() => {
3332
assert(Buffer.isBuffer(require('http2').getPackedSettings()));
3433
});

0 commit comments

Comments
 (0)