Skip to content

Commit

Permalink
Tests: Make Karma browser timeout larger than the QUnit one
Browse files Browse the repository at this point in the history
Since the default Karma browser no activity timeout was lower than the QUnit
timeout, a single timing out test was interrupting the whole test run of
a browser.

The QUnit timeout is set to 1 minute so I set the Karma one to 2 minutes.

Closes gh-4943
  • Loading branch information
mgol committed Oct 29, 2021
1 parent 9735edd commit 4fd6912
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,10 @@ module.exports = function( grunt ) {
],
reporters: [ "dots" ],
autoWatch: false,

// 2 minutes; has to be longer than QUnit.config.testTimeout
browserNoActivityTimeout: 120e3,

concurrency: 3,
captureTimeout: 20 * 1000,
singleRun: true
Expand Down

0 comments on commit 4fd6912

Please sign in to comment.