test: add common.crashOnHandleRejection

PR-URL: https://github.com/nodejs/node/pull/17225
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
jackyen 2017-11-22 16:19:33 +08:00 committed by James M Snell
parent 3f19ecda2a
commit 6b56be21a4

View File

@ -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).