Skip to content

Commit 88b977f

Browse files
authored
fix(config): wait 20s for browser activity. (#3087)
On low-horsepower CI systems karma frequently times out waiting for phantomjs. We see this in our Travis-CI runs. Users also see it: karma-runner/karma-phantomjs-launcher#126.
1 parent 94a6728 commit 88b977f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/config/01-configuration-file.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ a flaky network link between the Karma server and the browsers.
156156
## browserNoActivityTimeout
157157
**Type:** Number
158158

159-
**Default:** `10000`
159+
**Default:** `20000`
160160

161161
**Description:** How long will Karma wait for a message from a browser before disconnecting from it (in ms).
162162

@@ -581,7 +581,7 @@ Note: Using `'https:'` requires you to specify `httpsServerOptions`.
581581

582582
**Description:** Module used for Karma webserver.
583583

584-
Uses the provided module instead of node's built in `http` or `https` module. The module loaded here must exactly match the interface of node's http module. This can be useful for loading in a module like `node-http2` to allow for http2 support.
584+
Uses the provided module instead of node's built in `http` or `https` module. The module loaded here must exactly match the interface of node's http module. This can be useful for loading in a module like `node-http2` to allow for http2 support.
585585

586586
Note: if you're using this to enable `http2` you must also set the `protocol` to `https:` and specify certificates as http2 can only run of https.
587587

lib/config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ class Config {
343343
}
344344
this.browserDisconnectTimeout = 2000
345345
this.browserDisconnectTolerance = 0
346-
this.browserNoActivityTimeout = 10000
346+
this.browserNoActivityTimeout = 20000
347347
this.processKillTimeout = 2000
348348
this.concurrency = Infinity
349349
this.failOnEmptyTestSuite = true

0 commit comments

Comments
 (0)