summaryrefslogtreecommitdiff
path: root/src/or/test.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2009-09-20 19:50:44 -0400
committerRoger Dingledine <arma@torproject.org>2009-09-20 19:50:44 -0400
commitcf2afcd7072d20755ad030ed8240c21ec649dcd7 (patch)
tree58b8125dd4daaf3ca73eadae47e0e00eeda5ed2d /src/or/test.c
parentf39bedf250ce878436acda2b7217fa0b5621ffaa (diff)
downloadtor-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.c5
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));