Skip to content

Commit

Permalink
Remove reference to test before afterAll hook runs
Browse files Browse the repository at this point in the history
  • Loading branch information
Stone committed Dec 15, 2015
1 parent 3af1b8a commit dc97c1f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,10 @@ Runner.prototype.runSuite = function(suite, fn) {
// mark that the afterAll block has been called once
// and so can be skipped if there is an error in it.
afterAllHookCalled = true;

// remove reference to test
delete self.test;

self.hook('afterAll', function() {
self.emit('suite end', suite);
fn(errSuite);
Expand Down

0 comments on commit dc97c1f

Please sign in to comment.