From: Jukka Kurkela Date: Mon, 1 Feb 2021 12:50:18 +0000 (+0200) Subject: Prevent test timeouts due to Chrome backgrounding (#8360) X-Git-Tag: v3.0.0-beta.10~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e555e2285f7539b778ab8ab6d63f4d6a4da5e4d;p=thirdparty%2FChart.js.git Prevent test timeouts due to Chrome backgrounding (#8360) * Prevent test timeouts due to Chrome backgrounding * Add karma.conf.js to test filters --- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a4e620e8e..8d691b398 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,6 +36,7 @@ jobs: - 'src/**' test: - 'test/**' + - 'karma.conf.js' types: - 'types/**' - name: Install diff --git a/karma.conf.js b/karma.conf.js index 29ab1eb76..3eefdae6c 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -1,5 +1,3 @@ -/* eslint-disable import/no-commonjs */ - const commonjs = require('@rollup/plugin-commonjs'); const istanbul = require('rollup-plugin-istanbul'); const json = require('@rollup/plugin-json'); @@ -49,7 +47,10 @@ module.exports = function(karma) { chrome: { base: 'Chrome', flags: [ - '--disable-accelerated-2d-canvas' + '--disable-accelerated-2d-canvas', + '--disable-background-timer-throttling', + '--disable-backgrounding-occluded-windows', + '--disable-renderer-backgrounding' ] }, firefox: {