From 017379e89b0c48b8fefee2aea5dd7e7f569f0781 Mon Sep 17 00:00:00 2001 From: jackyen Date: Wed, 22 Nov 2017 16:19:33 +0800 Subject: [PATCH] test: add common.crashOnHandleRejection PR-URL: https://github.com/nodejs/node/pull/17225 Reviewed-By: James M Snell --- ...st-net-server-max-connections-close-makes-more-available.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/parallel/test-net-server-max-connections-close-makes-more-available.js b/test/parallel/test-net-server-max-connections-close-makes-more-available.js index 12f1f81ffd08d3..eb045c704c637c 100644 --- a/test/parallel/test-net-server-max-connections-close-makes-more-available.js +++ b/test/parallel/test-net-server-max-connections-close-makes-more-available.js @@ -1,8 +1,9 @@ 'use strict'; -require('../common'); +const common = require('../common'); const assert = require('assert'); const net = require('net'); +common.crashOnUnhandledRejection(); // Sets the server's maxConnections property to 1. // Open 2 connections (connection 0 and connection 1).