diff options
Diffstat (limited to 'test/parallel/test-net-server-max-connections-close-makes-more-available.js')
-rw-r--r-- | test/parallel/test-net-server-max-connections-close-makes-more-available.js | 8 |
1 files changed, 1 insertions, 7 deletions
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 eb045c704c..f607f28c10 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,9 +1,8 @@ 'use strict'; -const common = require('../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). @@ -84,8 +83,3 @@ process.on('exit', function() { // ...but that only connections 0 and 2 were successful. assert.deepStrictEqual(received, ['0', '2']); }); - -process.on('unhandledRejection', function() { - console.error('promise rejected'); - assert.fail('A promise in the chain rejected'); -}); |