From 7c262ca28e19a039fa88adb5510d3468cd683339 Mon Sep 17 00:00:00 2001 From: Tim Swast Date: Mon, 10 Oct 2016 14:43:55 -0700 Subject: [PATCH] Disconnect timeout is too low for Karma. Increasing it should help with Travis not being able to run the integration tests. https://github.com/karma-runner/karma/issues/598 --- vision/explore-api/karma.conf.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/vision/explore-api/karma.conf.js b/vision/explore-api/karma.conf.js index e652fdb..5c00612 100644 --- a/vision/explore-api/karma.conf.js +++ b/vision/explore-api/karma.conf.js @@ -73,6 +73,13 @@ module.exports = function (config) { // Concurrency level // how many browser should be started simultaneous - concurrency: Infinity + concurrency: Infinity, + + // Increase timeouts for Travis to avoid disconnects. + // https://github.com/karma-runner/karma/issues/598 + captureTimeout: 60000, + browserDisconnectTimeout: 10000, + browserDisconnectTolerance: 1, + browserNoActivityTimeout: 60000 }); };