]> source.dussan.org Git - jquery.git/commitdiff
Tests: Make Karma browser timeout larger than the QUnit one
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Fri, 29 Oct 2021 22:56:31 +0000 (00:56 +0200)
committerGitHub <noreply@github.com>
Fri, 29 Oct 2021 22:56:31 +0000 (00:56 +0200)
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

Gruntfile.js

index b10ebb2dcc1c6ac5b6c4f58242b53d805951aae2..a3e4f0c467835146b2b75de0450d5c7d4cfd06ff 100644 (file)
@@ -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