Skip to content

Commit

Permalink
test: add tests for ERR_HTTP2_FRAME_ERROR
Browse files Browse the repository at this point in the history
PR-URL: #16107
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: Daijiro Wachi <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Yuta Hiroto <[email protected]>
  • Loading branch information
ruxandrafed authored and MylesBorins committed Oct 23, 2017
1 parent 71e6c6e commit 6ad5b90
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/parallel/test-internal-errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,15 @@ assert.strictEqual(
errors.message('ERR_HTTP2_HEADER_REQUIRED', ['test']),
'The test header is required');

// Test ERR_HTTP2_FRAME_ERROR
assert.strictEqual(
errors.message('ERR_HTTP2_FRAME_ERROR', ['foo', 'bar', 'baz']),
'Error sending frame type foo for stream baz with code bar');
assert.strictEqual(
errors.message('ERR_HTTP2_FRAME_ERROR', ['foo', 'bar']),
'Error sending frame type foo with code bar');


// Test that `code` property is mutable and that changing it does not change the
// name.
{
Expand Down

0 comments on commit 6ad5b90

Please sign in to comment.