From c32b13155708f8084f585f793a1995ce4a2e598d Mon Sep 17 00:00:00 2001 From: Raynos Date: Tue, 11 Dec 2012 18:33:39 -0800 Subject: [PATCH] fixed bug --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index c59779d9..8f8ded41 100644 --- a/index.js +++ b/index.js @@ -52,6 +52,7 @@ function createHarness (conf_) { }); t.on('test', function sub (st) { + count++; st.on('test', sub); st.on('end', onend); }); @@ -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(); } @@ -90,4 +92,4 @@ function createHarness (conf_) { return test; } -// vim: set softtabstop=4 shiftwidth=4: \ No newline at end of file +// vim: set softtabstop=4 shiftwidth=4: