From 2010b800b81fcf4486fd91c939b215e317185bac Mon Sep 17 00:00:00 2001 From: Zack Yang Date: Wed, 22 Nov 2017 16:08:51 +0800 Subject: [PATCH] test: use common.crashOnUnhandledRejection Deal with crash case for unhandled rejection. PR-URL: https://github.com/nodejs/node/pull/17217 Reviewed-By: Gireesh Punathil Reviewed-By: James M Snell --- test/known_issues/test-inspector-cluster-port-clash.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/known_issues/test-inspector-cluster-port-clash.js b/test/known_issues/test-inspector-cluster-port-clash.js index 9fa2b483568c93..381446147c3175 100644 --- a/test/known_issues/test-inspector-cluster-port-clash.js +++ b/test/known_issues/test-inspector-cluster-port-clash.js @@ -23,6 +23,8 @@ if (process.config.variables.v8_enable_inspector === 0) { const cluster = require('cluster'); const net = require('net'); +common.crashOnUnhandleRejection(); + const ports = [process.debugPort]; const clashPort = process.debugPort + 2; function serialFork() {