Skip to content

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Raynos committed Dec 12, 2012
1 parent e436a61 commit c32b131
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ function createHarness (conf_) {
});

t.on('test', function sub (st) {
count++;
st.on('test', sub);
st.on('end', onend);
});
Expand All @@ -76,6 +77,7 @@ function createHarness (conf_) {

process.nextTick(function () {
if (pending.length) return pending.shift()();
console.error("count", count)
if (count === 0) {
out.close();
}
Expand All @@ -90,4 +92,4 @@ function createHarness (conf_) {
return test;
}

// vim: set softtabstop=4 shiftwidth=4:
// vim: set softtabstop=4 shiftwidth=4:

0 comments on commit c32b131

Please sign in to comment.