Skip to content

Commit

Permalink
Explicitly exit out of nodeunit in both success and failure cases
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-pushspring committed Nov 21, 2016
1 parent d5806bb commit dc7e3c7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bin/nodeunit
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,5 @@ else {
}

testrunner.run(files, options, function(err) {
if (err) {
process.exit(1);
}
process.exit(err ? 1 : 0);
});

0 comments on commit dc7e3c7

Please sign in to comment.