Skip to content

Commit

Permalink
Grunt: Fix scoping issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jzaefferer committed Jun 15, 2012
1 parent b657473 commit c9ff92a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build/tasks/testswarm.js
Expand Up @@ -27,7 +27,7 @@ var tests = {
"Widget": "widget/widget.html"
};

function submit( commit, tests, configFile ) {
function submit( commit, tests, configFile, done ) {
var test,
testswarm = require( "testswarm" ),
config = grunt.file.readJSON( configFile ).jqueryui,
Expand All @@ -40,7 +40,7 @@ function submit( commit, tests, configFile ) {
url: config.swarmUrl,
pollInterval: 10000,
timeout: 1000 * 60 * 30,
done: this.async()
done: done
}, {
authUsername: config.authUsername,
authToken: config.authToken,
Expand All @@ -53,7 +53,7 @@ function submit( commit, tests, configFile ) {
}

grunt.registerTask( "testswarm", function( commit, configFile ) {
submit( commit, tests, configFile );
submit( commit, tests, configFile, this.async() );
});

grunt.registerTask( "testswarm-multi-jquery", function( commit, configFile ) {
Expand All @@ -65,7 +65,7 @@ grunt.registerTask( "testswarm-multi-jquery", function( commit, configFile ) {
for ( test in tests ) {
allTests[ test + "-1.7.2" ] = tests[ test ] + "?nojshint=true&jquery=1.7.2";
}
submit( commit, allTests, configFile );
submit( commit, allTests, configFile, this.async() );
});

};

0 comments on commit c9ff92a

Please sign in to comment.