File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ Test.prototype.run = function() {
54
54
55
55
try {
56
56
this . __phase = 'test' ;
57
- this . __func ( this . assert , function ( ) { self . __phase = 'teardown' ; self . finish ( ) ; } , this ) ;
57
+ this . __func ( this . assert , function ( ) { self . finish ( ) ; } , this ) ;
58
58
}
59
59
catch ( err ) {
60
60
if ( this . listeners ( 'uncaughtException' ) . length > 0 ) {
@@ -67,7 +67,6 @@ Test.prototype.run = function() {
67
67
68
68
// they didn't ask for the finish function so assume it is synchronous
69
69
if ( this . __func . length < 2 ) {
70
- this . __phase = 'teardown' ;
71
70
this . finish ( ) ;
72
71
}
73
72
} ;
@@ -299,6 +298,7 @@ TestSuite.prototype.runTest = function(testIndex) {
299
298
300
299
try {
301
300
if ( suite . _teardown ) {
301
+ t . __phase = 'teardown' ;
302
302
if ( suite . _teardown . length == 0 ) {
303
303
suite . _teardown . call ( t ) ;
304
304
teardownCallback ( ) ;
You can’t perform that action at this time.
0 commit comments