Skip to content
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.

Commit

Permalink
new timeout for karma based tests are 20s
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoffner committed Aug 31, 2017
1 parent 3b263b9 commit de8c166
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/runners/javascript/run-karma.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
const execNode = require('./exec-node');

module.exports = function runKarma(opts, runCode, fail, interfaceType, config) {
// default to 20 seconds, since karma/phantom can be slow to start up
opts.timeout = opts.timeout || 20000;

const sConfig = JSON.stringify(Object.assign({
singleRun: true,
autoWatch: false,
Expand All @@ -14,7 +17,7 @@ module.exports = function runKarma(opts, runCode, fail, interfaceType, config) {
logLevel: 'warn',
client: {
mocha: {
timeout: opts.timeout || 10000,
timeout: opts.timeout,
ui: interfaceType,
},
},
Expand Down

0 comments on commit de8c166

Please sign in to comment.