Skip to content

Commit

Permalink
Disable the WebDriver BiDi protocol for Chrome
Browse files Browse the repository at this point in the history
This should avoid the timeouts and OOM issues we have on the Linux bot,
which started since PR mozilla#18473.
  • Loading branch information
timvandermeij committed Jul 28, 2024
1 parent b4f368c commit 100fafa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -904,6 +904,10 @@ async function startBrowser({
const printFile = path.join(tempDir, "print.pdf");

if (browserName === "chrome") {
// Run tests with the CDP protocol for Chrome only given that the Linux bot
// crashes with timeouts or OOM if WebDriver BiDi is used (issue #17961).
options.protocol = "cdp";

// avoid crash
options.args = ["--no-sandbox", "--disable-setuid-sandbox"];
// silent printing in a pdf
Expand Down

0 comments on commit 100fafa

Please sign in to comment.