Skip to content

Commit

Permalink
minor fix for 0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Mar 31, 2013
1 parent 4fe80b3 commit 52e25d8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.js
Expand Up @@ -53,8 +53,10 @@ function createHarness (conf_) {
var exit = function (c) { exitCode = c };

out.on('end', function () {
clearInterval(exitInterval);
if (canExit && conf_.exit !== false) process.exit(exitCode);
nextTick(function () {
clearInterval(exitInterval);
if (canExit && conf_.exit !== false) process.exit(exitCode);
});
});

var test = function (name, conf, cb) {
Expand Down

0 comments on commit 52e25d8

Please sign in to comment.