test: use common.crashOnUnhandledRejection()

add common.crashOnUnhandledRejectio to
test-http2-window-size.js

PR-URL: https://github.com/nodejs/node/pull/17227
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Ivan Wei 2017-11-22 16:50:40 +08:00 committed by James M Snell
parent 96093981de
commit a3a987b4b8

View File

@ -10,6 +10,7 @@ if (!common.hasCrypto)
common.skip('missing crypto'); common.skip('missing crypto');
const assert = require('assert'); const assert = require('assert');
const h2 = require('http2'); const h2 = require('http2');
common.crashOnUnhandledRejection();
// Given a list of buffers and an initial window size, have a server write // Given a list of buffers and an initial window size, have a server write
// each buffer to the HTTP2 Writable stream, and let the client verify that // each buffer to the HTTP2 Writable stream, and let the client verify that