summaryrefslogtreecommitdiff
path: root/test/inspector
diff options
context:
space:
mode:
Diffstat (limited to 'test/inspector')
-rw-r--r--test/inspector/inspector-helper.js4
-rw-r--r--test/inspector/test-inspector.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/test/inspector/inspector-helper.js b/test/inspector/inspector-helper.js
index faf932f495..bc60974364 100644
--- a/test/inspector/inspector-helper.js
+++ b/test/inspector/inspector-helper.js
@@ -521,11 +521,11 @@ exports.startNodeForInspectorTest = function(callback,
clearTimeout(timeoutId);
console.log('[err]', text);
if (found) return;
- const match = text.match(/Debugger listening on ws:\/\/(.+):(\d+)\/(.+)/);
+ const match = text.match(/Debugger listening on ws:\/\/.+:(\d+)\/.+/);
found = true;
child.stderr.removeListener('data', dataCallback);
assert.ok(match, text);
- callback(new Harness(match[2], child));
+ callback(new Harness(match[1], child));
});
child.stderr.on('data', dataCallback);
diff --git a/test/inspector/test-inspector.js b/test/inspector/test-inspector.js
index 19eb3601f0..313fba9bd9 100644
--- a/test/inspector/test-inspector.js
+++ b/test/inspector/test-inspector.js
@@ -13,8 +13,8 @@ function checkListResponse(err, response) {
assert.strictEqual(1, response.length);
assert.ok(response[0]['devtoolsFrontendUrl']);
assert.ok(
- response[0]['webSocketDebuggerUrl']
- .match(/ws:\/\/127\.0\.0\.1:\d+\/[0-9A-Fa-f]{8}-/));
+ /ws:\/\/127\.0\.0\.1:\d+\/[0-9A-Fa-f]{8}-/
+ .test(response[0]['webSocketDebuggerUrl']));
}
function checkVersion(err, response) {