diff options
author | Mike Perry <mikeperry-git@fscked.org> | 2009-09-18 01:48:07 -0700 |
---|---|---|
committer | Mike Perry <mikeperry-git@fscked.org> | 2009-09-20 14:43:45 -0700 |
commit | 6700e528be5ee688439730f7e8f13b3ce9b64e09 (patch) | |
tree | c8c361570840d8f864960ec5356b46ea78dc52bd /src/or/test.c | |
parent | 2218fd22c580407230995518d9f52b3cd888774f (diff) | |
download | tor-6700e528be5ee688439730f7e8f13b3ce9b64e09.tar.gz tor-6700e528be5ee688439730f7e8f13b3ce9b64e09.zip |
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.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/test.c b/src/or/test.c index cf3b4a7f06..419db9a85c 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++; } } |