summaryrefslogtreecommitdiff
path: root/test/sequential/test-inspector-bindings.js
diff options
context:
space:
mode:
authorEugene Ostroukhov <eostroukhov@chromium.org>2018-04-24 11:16:55 -0700
committerEugene Ostroukhov <eostroukhov@google.com>2018-04-26 12:48:48 -0700
commit13001035340d6d3fb173fef4a1db42ba70f61720 (patch)
tree7333699fc80f90725a00b229dccc5bf718cfea78 /test/sequential/test-inspector-bindings.js
parent5c57cea8049bad5939807e6b849ee303ec8e1526 (diff)
downloadandroid-node-v8-13001035340d6d3fb173fef4a1db42ba70f61720.tar.gz
android-node-v8-13001035340d6d3fb173fef4a1db42ba70f61720.tar.bz2
android-node-v8-13001035340d6d3fb173fef4a1db42ba70f61720.zip
inspector: allow concurrent inspector sessions
This change enables concurrent inspector sessions, through WebSocket interface as well as JS interface, in any combination. PR-URL: https://github.com/nodejs/node/pull/20137 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'test/sequential/test-inspector-bindings.js')
-rw-r--r--test/sequential/test-inspector-bindings.js9
1 files changed, 0 insertions, 9 deletions
diff --git a/test/sequential/test-inspector-bindings.js b/test/sequential/test-inspector-bindings.js
index bf97d8b512..c23c8520e0 100644
--- a/test/sequential/test-inspector-bindings.js
+++ b/test/sequential/test-inspector-bindings.js
@@ -76,15 +76,6 @@ function testSampleDebugSession() {
};
const session = new inspector.Session();
session.connect();
- let secondSessionOpened = false;
- const secondSession = new inspector.Session();
- try {
- secondSession.connect();
- secondSessionOpened = true;
- } catch (error) {
- // expected as the session already exists
- }
- assert.strictEqual(secondSessionOpened, false);
session.on('Debugger.paused',
(notification) => debuggerPausedCallback(session, notification));
let cbAsSecondArgCalled = false;