From 54442f151690447400600cf84fb664495880348f Mon Sep 17 00:00:00 2001 From: Ben McCann Date: Sat, 21 Oct 2017 13:16:18 -0700 Subject: [PATCH] Attempt to fix test flakiness --- karma.conf.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/karma.conf.js b/karma.conf.js index 3ef7f49bfa7..5601cbd7212 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