@@ -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
5555grunt . registerTask ( "testswarm" , function ( commit , configFile ) {
56- submit ( commit , tests , configFile ) ;
56+ submit ( commit , tests , configFile , this . async ( ) ) ;
5757} ) ;
5858
5959grunt . 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