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 0e0e5c1 commit fc7d998
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions build/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,20 @@ module.exports = function (config) {
browsers: ['PhantomJS'],
singleRun: false,
browserNoActivityTimeout: 100000,
captureTimeout: 120000
captureTimeout: 120000,

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

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

config.set(configuration);
Expand Down

0 comments on commit fc7d998

Please sign in to comment.