mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
76f86c3ed4
There doesn't seem to be a reason for this test to have to stay in sequential. It appears to have been placed there out of caution. PR-URL: https://github.com/nodejs/node/pull/34755 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
20 lines
495 B
JavaScript
20 lines
495 B
JavaScript
// Flags: --inspect=0
|
|
'use strict';
|
|
|
|
const common = require('../common');
|
|
common.skipIfInspectorDisabled();
|
|
common.skipIfWorker();
|
|
|
|
const assert = require('assert');
|
|
const inspector = require('inspector');
|
|
const wsUrl = inspector.url();
|
|
assert(wsUrl.startsWith('ws://'));
|
|
assert.throws(() => {
|
|
inspector.open(0, undefined, false);
|
|
}, {
|
|
code: 'ERR_INSPECTOR_ALREADY_ACTIVATED'
|
|
});
|
|
assert.strictEqual(inspector.url(), wsUrl);
|
|
inspector.close();
|
|
assert.strictEqual(inspector.url(), undefined);
|