Skip to content

Commit

Permalink
test: fix inspector helper port sniffing
Browse files Browse the repository at this point in the history
PR-URL: #13870
Reviewed-By: Miroslav Bajtoš <[email protected]>
  • Loading branch information
TimothyGu authored and MylesBorins committed Sep 11, 2017
1 parent 82823f7 commit e0dccd0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/inspector/inspector-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,10 @@ class NodeInstance {
console.log('[err]', line);
if (this._portCallback) {
const matches = line.match(/Debugger listening on ws:\/\/.+:(\d+)\/.+/);
if (matches)
if (matches) {
this._portCallback(matches[1]);
this._portCallback = null;
this._portCallback = null;
}
}
if (this._stderrLineCallback) {
this._stderrLineCallback(line);
Expand Down

0 comments on commit e0dccd0

Please sign in to comment.