Skip to content
This repository has been archived by the owner on Aug 31, 2018. It is now read-only.

Commit

Permalink
test: add tests for ERR_HTTP2_FRAME_ERROR
Browse files Browse the repository at this point in the history
PR-URL: nodejs/node#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 addaleax committed Oct 15, 2017
1 parent 7e2936f commit 67253b3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/parallel/test-internal-errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,14 @@ 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 error messages for async_hooks
assert.strictEqual(
errors.message('ERR_ASYNC_CALLBACK', ['init']),
Expand Down

0 comments on commit 67253b3

Please sign in to comment.