From 707f26ad1a08405c5baedea9b0755e49ec14dc16 Mon Sep 17 00:00:00 2001 From: Scya597 Date: Wed, 22 Nov 2017 16:15:18 +0800 Subject: [PATCH] test: add common.crashOnUnhandledRejection() also add comment in test/parallel/test-http2-client-promisify-connect.js --- test/parallel/test-http2-client-promisify-connect.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/parallel/test-http2-client-promisify-connect.js b/test/parallel/test-http2-client-promisify-connect.js index f13f5f1408d307..dff86de2f18087 100644 --- a/test/parallel/test-http2-client-promisify-connect.js +++ b/test/parallel/test-http2-client-promisify-connect.js @@ -1,6 +1,10 @@ 'use strict'; const common = require('../common'); +common.crashOnUnhandledRejection(); + +// Crash the process on unhandled rejections. + if (!common.hasCrypto) common.skip('missing crypto'); const assert = require('assert');