isaacs/tap-runner — Issue #7: Throw before `t.end()` seems to change result to `0/0`
Author: thejh
Created: 2011-11-16 18:43:59+00:00
State: open

/home/jann/gitty/dnode/test/gc.js:20
if (!client_ok) throw new Error('client side not cleaned up')
^
Error: client side not cleaned up
at Object.forced_gc_loop [as _onTimeout] (/home/jann/gitty/dnode/test/gc.js:20:35)
at Timer.ontimeout (timers.js:84:39)

ok gc.js ............................ 0/0

This happens with the following code:

if (!server_ok) throw new Error('server side not cleaned up')
if (!client_ok) throw new Error('client side not cleaned up')
t.end();

Reversing the order fixes it, but I think that the test should count as `0/1` if it throws or doesn't call `t.end()`.