Skip to content

Commit

Permalink
Increase test timeout for Chrome on Windows
Browse files Browse the repository at this point in the history
There is some bug in Chrome 119+ on some systems, where it takes
forever for the first readback from a canvas, timing out the first
test that does this.

Work around the issue by increasing the timeout on that platform until
Chrome manages to resolve the issue.
  • Loading branch information
CendioOssman committed Jan 19, 2024
1 parent b35cf6d commit fca48df
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,12 @@ module.exports = (config) => {
singleRun: true,
};

if (process.env.TEST_BROWSER_NAME === 'ChromeHeadless') {
let os = require('os');
if (os.platform() === 'win32') {
my_conf.client.mocha['timeout'] = 5000;
}
}

config.set(my_conf);
};

0 comments on commit fca48df

Please sign in to comment.