From fca48df85d394b2c1e9d26ed6e9d10d33db9f4f4 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Fri, 19 Jan 2024 15:58:48 +0100 Subject: [PATCH] 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. --- karma.conf.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/karma.conf.js b/karma.conf.js index 1ea17475a..faa8beea2 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -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); };