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š <mbajtoss@gmail.com>
  • Loading branch information
TimothyGu authored and MylesBorins committed Sep 12, 2017
1 parent e2ae08b commit 77bc72a
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 77bc72a

Please sign in to comment.