Skip to content

Commit

Permalink
set batch.status to 'end' when ended
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhead committed Jun 14, 2010
1 parent 5a3362f commit 98418c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/vows/suite.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ this.tryEnd = function (batch) {
(k in batch.suite.results) && (batch.suite.results[k] += batch[k]);
});

batch.status = 'end';
batch.suite.report(['end']);
batch.promise.emit('end', batch.honored, batch.broken, batch.errored, batch.pending);
}
Expand Down

0 comments on commit 98418c7

Please sign in to comment.