DEV: Correct error message check in run-qunit

Followup to 43ca1bb132
This commit is contained in:
David Taylor 2019-12-12 14:06:06 +00:00
parent ea6326c860
commit 8dcda65837

View File

@ -63,7 +63,7 @@ async function runAllTests() {
try {
protocol = await CDP({ port: chrome.port });
} catch (e) {
if (e === "No inspectable targets" && connectAttempts < 50) {
if (e.message === "No inspectable targets" && connectAttempts < 50) {
connectAttempts++;
console.log(
"Unable to establish connection to chrome target - trying again..."