Skip to content

Commit

Permalink
[core] fixing karma timeout error in travis (vmware-archive#666)
Browse files Browse the repository at this point in the history
Fixes vmware-archive#666.

Signed-off-by: Jeeyun Lim <jeeyun.lim@gmail.com>
  • Loading branch information
jeeyun committed Apr 25, 2017
1 parent 4f6b8f4 commit 6c32e57
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions build/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,19 @@ module.exports = function (config) {
browsers: ['PhantomJS'],
singleRun: false,
browserNoActivityTimeout: 100000,
captureTimeout: 120000
captureTimeout: 120000,

customLaunchers: {
Chrome_without_sandbox: {
base: 'Chrome',
flags: ['--no-sandbox']
}
}
}

// Only use Chrome for Travis CI
// Only enable for Travis CI
if(process.env.TRAVIS && process.env.TEST_SUITE === "test") {
configuration.browsers = ['Chrome'];
configuration.browsers = Object.keys(customLaunchers);
}

config.set(configuration);
Expand Down

0 comments on commit 6c32e57

Please sign in to comment.