From d066d65ff0acc5c5086e66f4351d9c0d4c60fa11 Mon Sep 17 00:00:00 2001 From: Dan Foley Date: Tue, 20 Nov 2018 20:07:16 -0800 Subject: [PATCH] test: remove unused reject handlers PR-URL: https://github.com/nodejs/node/pull/24540 Reviewed-By: Rich Trott Reviewed-By: Anatoli Papirovski --- test/common/inspector-helper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/common/inspector-helper.js b/test/common/inspector-helper.js index 7cac2b29f9c90c..75b87e9cf91372 100644 --- a/test/common/inspector-helper.js +++ b/test/common/inspector-helper.js @@ -416,7 +416,7 @@ class NodeInstance extends EventEmitter { async connectInspectorSession() { console.log('[test]', 'Connecting to a child Node process'); const upgradeRequest = await this.sendUpgradeRequest(); - return new Promise((resolve, reject) => { + return new Promise((resolve) => { upgradeRequest .on('upgrade', (message, socket) => resolve(new InspectorSession(socket, this))) @@ -427,7 +427,7 @@ class NodeInstance extends EventEmitter { async expectConnectionDeclined() { console.log('[test]', 'Checking upgrade is not possible'); const upgradeRequest = await this.sendUpgradeRequest(); - return new Promise((resolve, reject) => { + return new Promise((resolve) => { upgradeRequest .on('upgrade', common.mustNotCall('Upgrade was received')) .on('response', (response) =>