aboutsummaryrefslogtreecommitdiff
path: root/src/or/test.c
diff options
context:
space:
mode:
authorMike Perry <mikeperry-git@fscked.org>2009-09-18 01:48:07 -0700
committerMike Perry <mikeperry-git@fscked.org>2009-09-20 14:43:45 -0700
commit6700e528be5ee688439730f7e8f13b3ce9b64e09 (patch)
treec8c361570840d8f864960ec5356b46ea78dc52bd /src/or/test.c
parent2218fd22c580407230995518d9f52b3cd888774f (diff)
downloadtor-6700e528be5ee688439730f7e8f13b3ce9b64e09.tar
tor-6700e528be5ee688439730f7e8f13b3ce9b64e09.tar.gz
Fix some precision-related asserts in unit tests.
Mostly by storing the timeout as milliseconds and not seconds internally.
Diffstat (limited to 'src/or/test.c')
-rw-r--r--src/or/test.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/test.c b/src/or/test.c
index cf3b4a7f0..419db9a85 100644
--- a/src/or/test.c
+++ b/src/or/test.c
@@ -3444,8 +3444,7 @@ test_circuit_timeout(void)
int n = 0;
for (i=0; i < MIN_CIRCUITS_TO_OBSERVE; i++) {
if (circuit_build_times_add_time(&estimate,
- circuit_build_times_generate_sample(&initial, 0,
- MAX_SYNTHETIC_QUANTILE)) == 0) {
+ circuit_build_times_generate_sample(&initial, 0, 1)) == 0) {
n++;
}
}