From a21f56a933c336fb4c531b2afc4f388ead282785 Mon Sep 17 00:00:00 2001 From: Furqan Shaikh Date: Mon, 31 Dec 2018 23:07:11 +0530 Subject: [PATCH 1/2] test: http2 origin length ERR_HTTP2_ORIGIN_LENGTH --- test/parallel/test-http2-origin.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/parallel/test-http2-origin.js b/test/parallel/test-http2-origin.js index 6312d1f00649f0..f5a44a272b4a25 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(() => { From 9c117956a35e267eb40b784ede7e5570ca1b01aa Mon Sep 17 00:00:00 2001 From: Furqan Shaikh Date: Wed, 2 Jan 2019 11:14:22 +0530 Subject: [PATCH 2/2] test: http2 origin length ERR_HTTP2_ORIGIN_LENGTH. Fixed linter issue - Missing semicolon --- test/parallel/test-http2-origin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-http2-origin.js b/test/parallel/test-http2-origin.js index f5a44a272b4a25..b06d371e29f36d 100644 --- a/test/parallel/test-http2-origin.js +++ b/test/parallel/test-http2-origin.js @@ -70,7 +70,7 @@ const ca = readKey('fake-startcom-root-cert.pem', 'binary'); } ); }); - const longInput = 'http://foo.bar' + 'a'.repeat(16383) + const longInput = 'http://foo.bar' + 'a'.repeat(16383); throws( () => session.origin(longInput), {