Skip to content

Commit 4b3b072

Browse files
author
Jonathan Ginsburg
committed
chore(ci/client/browserstack): modify concurrency and timeout settings
In our client tests, for BrowserStack, reduce the `browserDisconnectTimeout` and the `browserNoActivityTimeout` to a minute, instead of 5. Also, reduce the concurrency of browsers to 2 instead of 3. This is because BS is being flaky when handling many browsers concurrently and, when a browser has been disconnected it will generally not come back, so we do not need to wait a whole 5 minutes; it is better to just use another try from the `browserDisconnectTolerance` configuration pool. The overall result is a more efficient CI run.
1 parent 67e4690 commit 4b3b072

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/client/karma.conf.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ module.exports = function (config) {
103103
// https://github.com/karma-runner/karma-browserstack-launcher/issues/61
104104
captureTimeout: 3e5,
105105
browserDisconnectTolerance: 3,
106-
browserDisconnectTimeout: 3e5,
106+
browserDisconnectTimeout: 6e4,
107107
browserSocketTimeout: 1.2e5,
108-
browserNoActivityTimeout: 3e5,
108+
browserNoActivityTimeout: 6e4,
109109

110110
// Auto run tests on start (when browsers are captured) and exit
111111
// CLI --single-run --no-single-run
@@ -124,7 +124,7 @@ module.exports = function (config) {
124124
'karma-browserstack-launcher'
125125
],
126126

127-
concurrency: 3,
127+
concurrency: 2,
128128

129129
forceJSONP: true,
130130

0 commit comments

Comments
 (0)