Commit 59c4adba authored by Jörn Zaefferer's avatar Jörn Zaefferer Committed by Michał Gołębiowski

Build: Fix testswarm task, use API correctly

(cherry-picked from 22c515c6)
parent c601eae7
...@@ -23,10 +23,8 @@ module.exports = function( grunt ) { ...@@ -23,10 +23,8 @@ module.exports = function( grunt ) {
runs[ test ] = config.testUrl + commit + "/test/index.html?module=" + test; runs[ test ] = config.testUrl + commit + "/test/index.html?module=" + test;
}); });
testswarm.createClient( { testswarm.createClient({
url: config.swarmUrl, url: config.swarmUrl
pollInterval: 10000,
timeout: timeout || 1000 * 60 * 30
} ) } )
.addReporter( testswarm.reporters.cli ) .addReporter( testswarm.reporters.cli )
.auth( { .auth( {
...@@ -38,7 +36,8 @@ module.exports = function( grunt ) { ...@@ -38,7 +36,8 @@ module.exports = function( grunt ) {
name: jobName, name: jobName,
runs: runs, runs: runs,
runMax: config.runMax, runMax: config.runMax,
browserSets: browserSets || [ "popular", "ios" ] browserSets: browserSets || [ "popular", "ios" ],
timeout: timeout || 1000 * 60 * 30
}, function( err, passed ) { }, function( err, passed ) {
if ( err ) { if ( err ) {
grunt.log.error( err ); grunt.log.error( err );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment