From d4a54993604d3b54ef2c6bfb70b24fb2404d851a Mon Sep 17 00:00:00 2001 From: esbb48 Date: Wed, 22 Nov 2017 16:34:58 +0800 Subject: [PATCH] test: use common.crashOnUnhandledRejection PR-URL: https://github.com/nodejs/node/pull/17218 Reviewed-By: Gireesh Punathil Reviewed-By: James M Snell --- test/parallel/test-http-agent.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/parallel/test-http-agent.js b/test/parallel/test-http-agent.js index cfb37539ede878..5c229d5b86c343 100644 --- a/test/parallel/test-http-agent.js +++ b/test/parallel/test-http-agent.js @@ -1,7 +1,8 @@ 'use strict'; -require('../common'); +const common = require('../common'); const assert = require('assert'); const http = require('http'); +common.crashOnUnhandledRejection(); const server = http.Server(function(req, res) { res.writeHead(200);