Skip to content

Commit c9ff92a

Browse files
committed
Grunt: Fix scoping issue
1 parent b657473 commit c9ff92a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

build/tasks/testswarm.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var tests = {
2727
"Widget": "widget/widget.html"
2828
};
2929

30-
function submit( commit, tests, configFile ) {
30+
function submit( commit, tests, configFile, done ) {
3131
var test,
3232
testswarm = require( "testswarm" ),
3333
config = grunt.file.readJSON( configFile ).jqueryui,
@@ -40,7 +40,7 @@ function submit( commit, tests, configFile ) {
4040
url: config.swarmUrl,
4141
pollInterval: 10000,
4242
timeout: 1000 * 60 * 30,
43-
done: this.async()
43+
done: done
4444
}, {
4545
authUsername: config.authUsername,
4646
authToken: config.authToken,
@@ -53,7 +53,7 @@ function submit( commit, tests, configFile ) {
5353
}
5454

5555
grunt.registerTask( "testswarm", function( commit, configFile ) {
56-
submit( commit, tests, configFile );
56+
submit( commit, tests, configFile, this.async() );
5757
});
5858

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

7171
};

0 commit comments

Comments
 (0)