Skip to content

Commit

Permalink
Remove uncaught-exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
Raynos committed Dec 14, 2014
1 parent 00835d8 commit dd661b0
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,23 +63,9 @@ function createExitHarness (conf) {

if (conf.exit === false) return harness;
if (!canEmitExit || !canExit) return harness;

var _error;

process.on('uncaughtException', function (err) {
if (err && err.code === 'EPIPE' && err.errno === 'EPIPE'
&& err.syscall === 'write') return;

_error = err

throw err
})

process.on('exit', function (code) {
if (_error) {
return
}

if (!ended) {
var only = harness._results._only;
for (var i = 0; i < harness._tests.length; i++) {
Expand Down

0 comments on commit dd661b0

Please sign in to comment.