diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2009-09-17 00:20:25 +0200 |
---|---|---|
committer | Mike Perry <mikeperry-git@fscked.org> | 2009-09-16 17:22:21 -0700 |
commit | 1aac7de1ea8cacf2d93f25dc7a4366350035c91c (patch) | |
tree | 0a1dbc1414105e6fd5336d5c528a8904e0294548 /src/or/test.c | |
parent | e2c2fa7a1f763b1815adc13bdea46d4dbdba78c1 (diff) | |
download | tor-1aac7de1ea8cacf2d93f25dc7a4366350035c91c.tar.gz tor-1aac7de1ea8cacf2d93f25dc7a4366350035c91c.zip |
Fix unit tests and compile issues on Snow Leopard
Diffstat (limited to 'src/or/test.c')
-rw-r--r-- | src/or/test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/test.c b/src/or/test.c index 06bfccece6..df7bead4b3 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -3436,7 +3436,7 @@ test_circuit_timeout(void) memset(&state, 0, sizeof(or_state_t)); circuitbuild_running_unit_tests(); -#define timeout0 (30*1000.0) +#define timeout0 (build_time_t)(30*1000.0) initial.Xm = 750; circuit_build_times_initial_alpha(&initial, BUILDTIMEOUT_QUANTILE_CUTOFF, timeout0); @@ -3444,7 +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, 1)) == 0) { + circuit_build_times_generate_sample(&initial, 0, .98)) == 0) { n++; } } |