Skip to content

Commit 6ad5b90

Browse files
ruxandrafedMylesBorins
authored andcommitted
test: add tests for ERR_HTTP2_FRAME_ERROR
PR-URL: #16107 Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
1 parent 71e6c6e commit 6ad5b90

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/parallel/test-internal-errors.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,15 @@ assert.strictEqual(
246246
errors.message('ERR_HTTP2_HEADER_REQUIRED', ['test']),
247247
'The test header is required');
248248

249+
// Test ERR_HTTP2_FRAME_ERROR
250+
assert.strictEqual(
251+
errors.message('ERR_HTTP2_FRAME_ERROR', ['foo', 'bar', 'baz']),
252+
'Error sending frame type foo for stream baz with code bar');
253+
assert.strictEqual(
254+
errors.message('ERR_HTTP2_FRAME_ERROR', ['foo', 'bar']),
255+
'Error sending frame type foo with code bar');
256+
257+
249258
// Test that `code` property is mutable and that changing it does not change the
250259
// name.
251260
{

0 commit comments

Comments
 (0)