From 6e555e2285f7539b778ab8ab6d63f4d6a4da5e4d Mon Sep 17 00:00:00 2001 From: Jukka Kurkela Date: Mon, 1 Feb 2021 14:50:18 +0200 Subject: [PATCH] Prevent test timeouts due to Chrome backgrounding (#8360) * Prevent test timeouts due to Chrome backgrounding * Add karma.conf.js to test filters --- .github/workflows/ci.yml | 1 + karma.conf.js | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) 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: { -- 2.47.3