Skip to content

Commit eeea3e0

Browse files
committed
feat: increase axios timeout for Chrome connection
1 parent 0bafc7e commit eeea3e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/browser/browserDiscovery.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export async function isPortOpen(host: string, port: number, timeout = 2000): Pr
4545
export async function tryChromeHostUrl(chromeHostUrl: string): Promise<boolean> {
4646
try {
4747
console.log(`Trying to connect to Chrome at: ${chromeHostUrl}/json/version`)
48-
await axios.get(`${chromeHostUrl}/json/version`, { timeout: 1000 })
48+
await axios.get(`${chromeHostUrl}/json/version`, { timeout: 2000 })
4949
return true
5050
} catch (error) {
5151
return false

0 commit comments

Comments
 (0)