diff options
author | Dan Foley <dfoley@cantremember.com> | 2018-11-21 07:07:16 +0300 |
---|---|---|
committer | Rod Vagg <rod@vagg.org> | 2018-11-28 03:25:32 +0300 |
commit | 8fcf3b3c59deb2a96ce8d0fceb8b9a79df770d64 (patch) | |
tree | fcdd3a9987d780dba38515f5ddf9e47e230c6fb5 | |
parent | 46b5df0f1fd9a7311c72b4ea27c55790f251158c (diff) |
test: remove unused reject handlers
PR-URL: https://github.com/nodejs/node/pull/24540
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
-rw-r--r-- | test/common/inspector-helper.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/common/inspector-helper.js b/test/common/inspector-helper.js index 7cac2b29f9c..75b87e9cf91 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) => |