diff options
-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) => |