mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 23:38:09 +08:00
DEV: Correct error message check in run-qunit
Followup to 43ca1bb132ca687a91ad6d182296212ad714e1c2
This commit is contained in:
@ -63,7 +63,7 @@ async function runAllTests() {
|
|||||||
try {
|
try {
|
||||||
protocol = await CDP({ port: chrome.port });
|
protocol = await CDP({ port: chrome.port });
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (e === "No inspectable targets" && connectAttempts < 50) {
|
if (e.message === "No inspectable targets" && connectAttempts < 50) {
|
||||||
connectAttempts++;
|
connectAttempts++;
|
||||||
console.log(
|
console.log(
|
||||||
"Unable to establish connection to chrome target - trying again..."
|
"Unable to establish connection to chrome target - trying again..."
|
||||||
|
Reference in New Issue
Block a user