diff options
author | Ruben Bridgewater <ruben@bridgewater.de> | 2017-12-11 03:56:41 -0200 |
---|---|---|
committer | Ruben Bridgewater <ruben@bridgewater.de> | 2018-01-06 04:04:28 +0100 |
commit | f26cabbe249ae6e095736ef65bd925fb82c4908c (patch) | |
tree | dab6297265fd4690c224489b419a2e75140ca1ea /test/parallel/test-http2-misbehaving-multiplex.js | |
parent | 22760f31be7f725c217f87b8a5244ff3179f54d6 (diff) | |
download | android-node-v8-f26cabbe249ae6e095736ef65bd925fb82c4908c.tar.gz android-node-v8-f26cabbe249ae6e095736ef65bd925fb82c4908c.tar.bz2 android-node-v8-f26cabbe249ae6e095736ef65bd925fb82c4908c.zip |
test: fix wrong error classes passed in as type
PR-URL: https://github.com/nodejs/node/pull/13686
Fixes: https://github.com/nodejs/node/issues/13682
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Diffstat (limited to 'test/parallel/test-http2-misbehaving-multiplex.js')
-rw-r--r-- | test/parallel/test-http2-misbehaving-multiplex.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/parallel/test-http2-misbehaving-multiplex.js b/test/parallel/test-http2-misbehaving-multiplex.js index 7d5a7a2f55..aba1721a56 100644 --- a/test/parallel/test-http2-misbehaving-multiplex.js +++ b/test/parallel/test-http2-misbehaving-multiplex.js @@ -1,4 +1,5 @@ 'use strict'; +// Flags: --expose-internals const common = require('../common'); @@ -7,6 +8,7 @@ if (!common.hasCrypto) const h2 = require('http2'); const net = require('net'); +const { NghttpError } = require('internal/http2/util'); const h2test = require('../common/http2'); let client; @@ -18,7 +20,7 @@ server.on('stream', common.mustCall((stream) => { server.on('session', common.mustCall((session) => { session.on('error', common.expectsError({ code: 'ERR_HTTP2_ERROR', - type: Error, + type: NghttpError, message: 'Stream was already closed or invalid' })); })); |