From 22c515c6717efe46685b43215208aa4e5648fbc8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=CC=88rn=20Zaefferer?= Date: Wed, 12 Mar 2014 11:08:16 +0100 Subject: [PATCH] Build: Fix testswarm task, use API correctly --- build/tasks/testswarm.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/build/tasks/testswarm.js b/build/tasks/testswarm.js index 135a3cc7e..3de7a089b 100644 --- a/build/tasks/testswarm.js +++ b/build/tasks/testswarm.js @@ -23,10 +23,8 @@ module.exports = function( grunt ) { runs[ test ] = config.testUrl + commit + "/test/index.html?module=" + test; }); - testswarm.createClient( { - url: config.swarmUrl, - pollInterval: 10000, - timeout: timeout || 1000 * 60 * 30 + testswarm.createClient({ + url: config.swarmUrl } ) .addReporter( testswarm.reporters.cli ) .auth( { @@ -38,7 +36,8 @@ module.exports = function( grunt ) { name: jobName, runs: runs, runMax: config.runMax, - browserSets: browserSets || [ "popular-no-old-ie", "ios" ] + browserSets: browserSets || [ "popular-no-old-ie", "ios" ], + timeout: timeout || 1000 * 60 * 30 }, function( err, passed ) { if ( err ) { grunt.log.error( err ); -- 2.39.5