Skip to content

Commit

Permalink
fix: delay collector disposal until all file writing has completed.
Browse files Browse the repository at this point in the history
  • Loading branch information
abierbaum authored and vojtajina committed Aug 3, 2013
1 parent 4a9afb6 commit 75c4db0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion lib/reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ var CoverageReporter = function(rootConfig, emitter, helper, logger) {
} catch (e) {
log.error(e);
}
collector.dispose();
writeEnd();
});
}
Expand Down
1 change: 0 additions & 1 deletion test/reporter.spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,3 @@ describe 'reporter', ->
mockMkdir.getCall(0).args[1]()
expect(mockReportCreate).to.have.been.called
expect(mockWriteReport).to.have.been.called
expect(mockDispose).to.have.been.called

0 comments on commit 75c4db0

Please sign in to comment.