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

Commit 40f9c1c

Browse files
authored
Merge pull request #519 from jhoffner/8-17/karma_timeout
new timeout for karma based tests are 20s
2 parents 3b263b9 + de8c166 commit 40f9c1c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/runners/javascript/run-karma.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
const execNode = require('./exec-node');
44

55
module.exports = function runKarma(opts, runCode, fail, interfaceType, config) {
6+
// default to 20 seconds, since karma/phantom can be slow to start up
7+
opts.timeout = opts.timeout || 20000;
8+
69
const sConfig = JSON.stringify(Object.assign({
710
singleRun: true,
811
autoWatch: false,
@@ -14,7 +17,7 @@ module.exports = function runKarma(opts, runCode, fail, interfaceType, config) {
1417
logLevel: 'warn',
1518
client: {
1619
mocha: {
17-
timeout: opts.timeout || 10000,
20+
timeout: opts.timeout,
1821
ui: interfaceType,
1922
},
2023
},

0 commit comments

Comments
 (0)