Skip to content

Commit

Permalink
Prevent test timeouts due to Chrome backgrounding (#8360)
Browse files Browse the repository at this point in the history
* Prevent test timeouts due to Chrome backgrounding

* Add karma.conf.js to test filters
  • Loading branch information
kurkle authored Feb 1, 2021
1 parent ae0c8dd commit 6e555e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
- 'src/**'
test:
- 'test/**'
- 'karma.conf.js'
types:
- 'types/**'
- name: Install
Expand Down
7 changes: 4 additions & 3 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -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');
Expand Down Expand Up @@ -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: {
Expand Down

0 comments on commit 6e555e2

Please sign in to comment.