Skip to content

Commit

Permalink
debugger: do not repeat connection message when disconnecting
Browse files Browse the repository at this point in the history
  • Loading branch information
Trott committed Jul 10, 2021
1 parent 6463adf commit 9070585
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 29 deletions.
8 changes: 0 additions & 8 deletions src/inspector_socket_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -295,14 +295,6 @@ void InspectorSocketServer::SessionTerminated(int session_id) {
}
connected_sessions_.erase(session_id);
if (connected_sessions_.empty()) {
if (was_attached && state_ == ServerState::kRunning
&& !server_sockets_.empty()) {
PrintDebuggerReadyMessage(host_,
server_sockets_,
delegate_->GetTargetIds(),
inspect_publish_uid_.console,
out_);
}
if (state_ == ServerState::kStopped) {
delegate_.reset();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,30 +1,12 @@
'use strict';

// Refs: https://github.com/nodejs/node/issues/39272

const common = require('../common');

const assert = require('assert');

// When this is moved out of known_issues, this skip can be removed.
if (common.isOSX) {
assert.fail('does not fail reliably on macOS in CI');
}
common.skipIfInspectorDisabled();

// When this is moved out of known_issues, this can be removed and replaced with
// the commented-out use of common.skipIfInspectorDisabled() below.
if (!process.features.inspector) {
assert.fail('Known issues test should fail, so if the inspector is disabled');
}

// Will need to uncomment this when moved out of known_issues.
// common.skipIfInspectorDisabled();
const assert = require('assert');

// This can be reduced to 2 or even 1 (and the loop removed) once the debugger
// is fixed. It's set higher to make sure that the error is tripped reliably
// in CI. On most systems, the error will be tripped on the first test, but
// on a few platforms in CI, it needs to be many times.
const RESTARTS = 16;
const RESTARTS = 10;

const fixtures = require('../common/fixtures');
const startCLI = require('../common/debugger');
Expand Down

0 comments on commit 9070585

Please sign in to comment.