Skip to content

Commit 7fcc350

Browse files
TimothyGuMylesBorins
authored andcommitted
test: fix inspector helper port sniffing
PR-URL: #13870 Reviewed-By: Miroslav Bajtoš <[email protected]>
1 parent cf195cc commit 7fcc350

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/inspector/inspector-helper.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,10 @@ class NodeInstance {
325325
console.log('[err]', line);
326326
if (this._portCallback) {
327327
const matches = line.match(/Debugger listening on ws:\/\/.+:(\d+)\/.+/);
328-
if (matches)
328+
if (matches) {
329329
this._portCallback(matches[1]);
330-
this._portCallback = null;
330+
this._portCallback = null;
331+
}
331332
}
332333
if (this._stderrLineCallback) {
333334
this._stderrLineCallback(line);

0 commit comments

Comments
 (0)