mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 11:07:10 +00:00
fix(chrome): raise DevTools websocket read timeout to 60s
Chrome cold-start on a loaded CI runner can exceed chromedp's 20s default for reading the DevTools websocket URL, flaking the browser tests with "websocket url timeout reached". Give launch more headroom.
This commit is contained in:
1 parent
c27d1b3e4a
commit
a23fef3cee
1 file changed
+4
@@ -41,6 +41,10 @@ func New() *Driver {
|
||||
// CI runners give Chrome a tiny /dev/shm; without this the browser
|
||||
// process hangs on startup and never reports its DevTools socket.
|
||||
chromedp.Flag("disable-dev-shm-usage", true),
|
||||
// Cold-starting Chrome on a loaded CI runner can take longer than the
|
||||
// 20s default to print its DevTools websocket URL; give it more room
|
||||
// so launch does not flake with "websocket url timeout reached".
|
||||
chromedp.WSURLReadTimeout(60*time.Second),
|
||||
)...,
|
||||
)
|
||||
tabCtx, tabCancel := chromedp.NewContext(allocCtx)
|
||||
|
||||
Reference in new issue
Block a user