diff --git a/test/parallel/test-http2-origin.js b/test/parallel/test-http2-origin.js index 6312d1f00649f0..b06d371e29f36d 100644 --- a/test/parallel/test-http2-origin.js +++ b/test/parallel/test-http2-origin.js @@ -70,6 +70,14 @@ const ca = readKey('fake-startcom-root-cert.pem', 'binary'); } ); }); + const longInput = 'http://foo.bar' + 'a'.repeat(16383); + throws( + () => session.origin(longInput), + { + code: 'ERR_HTTP2_ORIGIN_LENGTH', + name: 'TypeError [ERR_HTTP2_ORIGIN_LENGTH]' + } + ); })); server.listen(0, mustCall(() => {