Skip to content

Commit

Permalink
Merge pull request #104 from matrix-org/kegan/ws-timeout
Browse files Browse the repository at this point in the history
Increase chrome timeout
  • Loading branch information
kegsay authored Jul 4, 2024
2 parents ae1503f + c2ab8ef commit 60dcf8b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/api/js/chrome/chrome.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ func RunHeadless(onConsoleLog func(s string), requiresPersistance bool, listenPo
chromedp.UserDataDir(userDir),
)
}
// increase the WS timeout from 20s (default) to 30s as we see timeouts with 20s in CI
opts = append(opts, chromedp.WSURLReadTimeout(30*time.Second))

allocCtx, allocCancel := chromedp.NewExecAllocator(context.Background(), opts...)
ctx, cancel := chromedp.NewContext(allocCtx, chromedp.WithBrowserOption(
Expand Down

0 comments on commit 60dcf8b

Please sign in to comment.