@@ -27,7 +27,7 @@ var tests = {
27
27
"Widget" : "widget/widget.html"
28
28
} ;
29
29
30
- function submit ( commit , tests , configFile ) {
30
+ function submit ( commit , tests , configFile , done ) {
31
31
var test ,
32
32
testswarm = require ( "testswarm" ) ,
33
33
config = grunt . file . readJSON ( configFile ) . jqueryui ,
@@ -40,7 +40,7 @@ function submit( commit, tests, configFile ) {
40
40
url : config . swarmUrl ,
41
41
pollInterval : 10000 ,
42
42
timeout : 1000 * 60 * 30 ,
43
- done : this . async ( )
43
+ done : done
44
44
} , {
45
45
authUsername : config . authUsername ,
46
46
authToken : config . authToken ,
@@ -53,7 +53,7 @@ function submit( commit, tests, configFile ) {
53
53
}
54
54
55
55
grunt . registerTask ( "testswarm" , function ( commit , configFile ) {
56
- submit ( commit , tests , configFile ) ;
56
+ submit ( commit , tests , configFile , this . async ( ) ) ;
57
57
} ) ;
58
58
59
59
grunt . registerTask ( "testswarm-multi-jquery" , function ( commit , configFile ) {
@@ -65,7 +65,7 @@ grunt.registerTask( "testswarm-multi-jquery", function( commit, configFile ) {
65
65
for ( test in tests ) {
66
66
allTests [ test + "-1.7.2" ] = tests [ test ] + "?nojshint=true&jquery=1.7.2" ;
67
67
}
68
- submit ( commit , allTests , configFile ) ;
68
+ submit ( commit , allTests , configFile , this . async ( ) ) ;
69
69
} ) ;
70
70
71
71
} ;
0 commit comments