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 10, 2017
1 parent cf195cc commit 7fcc350
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 7fcc350

Please sign in to comment.