From e30876121aa8db0317d22c368e4de08df0ba87d5 Mon Sep 17 00:00:00 2001 From: Ruxandra Fediuc Date: Mon, 9 Oct 2017 10:39:53 -0700 Subject: [PATCH] test: add tests for ERR_HTTP2_FRAME_ERROR PR-URL: https://github.com/nodejs/node/pull/16107 Reviewed-By: Gibson Fahnestock Reviewed-By: Daijiro Wachi Reviewed-By: James M Snell Reviewed-By: Yuta Hiroto --- test/parallel/test-internal-errors.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/parallel/test-internal-errors.js b/test/parallel/test-internal-errors.js index 39689a37ec..93757ae66c 100644 --- a/test/parallel/test-internal-errors.js +++ b/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']),