diff options
author | Roger Dingledine <arma@torproject.org> | 2009-09-20 19:50:44 -0400 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2009-09-20 19:50:44 -0400 |
commit | cf2afcd7072d20755ad030ed8240c21ec649dcd7 (patch) | |
tree | 58b8125dd4daaf3ca73eadae47e0e00eeda5ed2d /src/or/test.c | |
parent | f39bedf250ce878436acda2b7217fa0b5621ffaa (diff) | |
download | tor-cf2afcd7072d20755ad030ed8240c21ec649dcd7.tar.gz tor-cf2afcd7072d20755ad030ed8240c21ec649dcd7.zip |
Fix typos and comments, plus two bugs
A) We were considering a circuit had timed out in the special cases
where we close rendezvous circuits because the final rendezvous
circuit couldn't be built in time.
B) We were looking at the wrong timestamp_created when considering
a timeout.
Diffstat (limited to 'src/or/test.c')
-rw-r--r-- | src/or/test.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/test.c b/src/or/test.c index 7866db0b85..c2e34013b3 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -3560,8 +3560,9 @@ test_circuit_timeout(void) } } - test_assert(estimate.liveness.onehop_idx == 0); - test_assert(final.liveness.onehop_idx == MAX_RECENT_TIMEOUT_COUNT-1); + test_assert(estimate.liveness.after_firsthop_idx == 0); + test_assert(final.liveness.after_firsthop_idx == + MAX_RECENT_TIMEOUT_COUNT-1); test_assert(circuit_build_times_network_check_live(&estimate)); test_assert(circuit_build_times_network_check_live(&final)); |