mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +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 {
|
||||
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..."
|
||||
|
Reference in New Issue
Block a user