Increase test timeout for Chrome on Windows

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.
This commit is contained in:
Pierre Ossman 2024-01-19 15:58:48 +01:00
parent b35cf6dd12
commit fca48df85d
1 changed files with 7 additions and 0 deletions

View File

@ -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);
};