Skip to content
This repository was archived by the owner on Dec 5, 2018. It is now read-only.

Commit e4b29bf

Browse files
limit the number of simultaneous browsers in Karma tests
1 parent f6a6d91 commit e4b29bf

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

karma.conf.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -115,16 +115,6 @@ function configureSauceLabs (config) {
115115
};
116116

117117
config.customLaunchers = {
118-
SauceLabs_Chrome_Latest: {
119-
base: 'SauceLabs',
120-
platform: 'Windows 10',
121-
browserName: 'chrome'
122-
},
123-
SauceLabs_Firefox_Latest: {
124-
base: 'SauceLabs',
125-
platform: 'Windows 10',
126-
browserName: 'firefox'
127-
},
128118
SauceLabs_Safari_Latest: {
129119
base: 'SauceLabs',
130120
platform: 'macOS 10.12',
@@ -140,6 +130,16 @@ function configureSauceLabs (config) {
140130
platform: 'Windows 10',
141131
browserName: 'microsoftedge'
142132
},
133+
SauceLabs_Chrome_Latest: {
134+
base: 'SauceLabs',
135+
platform: 'Windows 10',
136+
browserName: 'chrome'
137+
},
138+
SauceLabs_Firefox_Latest: {
139+
base: 'SauceLabs',
140+
platform: 'Windows 10',
141+
browserName: 'firefox'
142+
},
143143
};
144144

145145
config.reporters.push('saucelabs');

test/fixtures/test-helper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
describe(suite, function () {
3131
var tests = Object.keys(testData[suite]);
3232

33-
if (host.env.CI && host.karma && host.browser && (host.browser.IE || host.browser.safari)) {
34-
// These browsers sporadically fail when run in SauceLabs via Karma.
33+
if (host.env.CI && host.karma && host.browser) {
34+
// We have too many tests, which causes SauceLabs browser tests to frequently fail.
3535
// So only run a subset of the tests to reduce the chance of failure.
3636
tests = tests.filter(function (test, index) {
3737
if (index % 25 === 0) {

0 commit comments

Comments
 (0)