Browse Source

test: add tests for ERR_HTTP2_FRAME_ERROR

PR-URL: https://github.com/nodejs/node/pull/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>
v9.x-staging
Ruxandra Fediuc 7 years ago
committed by Joyee Cheung
parent
commit
e30876121a
  1. 8
      test/parallel/test-internal-errors.js

8
test/parallel/test-internal-errors.js

@ -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']),

Loading…
Cancel
Save