]> source.dussan.org Git - jquery.git/commitdiff
Build: Fix testswarm task, use API correctly 1539/head
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Wed, 12 Mar 2014 10:08:16 +0000 (11:08 +0100)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Wed, 12 Mar 2014 10:08:16 +0000 (11:08 +0100)
build/tasks/testswarm.js

index 135a3cc7efa2b0e6a180a78f1b9ad0121fe4cd0d..3de7a089b551604e6932fa07cfee35540f4e24f0 100644 (file)
@@ -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 );