From: Ben McCann Date: Sun, 22 Oct 2017 15:32:39 +0000 (-0700) Subject: Attempt to fix test flakiness (Firefox) (#4880) X-Git-Tag: v2.7.1~1^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9f32f0775a38088a829cad6e920989ee98e3c86d;p=thirdparty%2FChart.js.git Attempt to fix test flakiness (Firefox) (#4880) These settings deal with browser disconnects. We had seen test flakiness from Firefox: [Firefox 56.0.0 (Linux 0.0.0)]: Disconnected (1 times), because no message in 10000 ms --- diff --git a/karma.conf.js b/karma.conf.js index 3ef7f49bf..5601cbd72 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -14,7 +14,13 @@ module.exports = function(karma) { browserify: { debug: true - } + }, + + // These settings deal with browser disconnects. We had seen test flakiness from Firefox + // [Firefox 56.0.0 (Linux 0.0.0)]: Disconnected (1 times), because no message in 10000 ms. + // https://github.com/jasmine/jasmine/issues/1327#issuecomment-332939551 + browserNoActivityTimeout: 60000, + browserDisconnectTolerance: 3 }; // https://swizec.com/blog/how-to-run-javascript-tests-in-chrome-on-travis/swizec/6647