aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_dir.c
diff options
context:
space:
mode:
authorteor <teor2345@gmail.com>2017-07-05 01:32:06 +1000
committerNick Mathewson <nickm@torproject.org>2017-07-07 13:18:04 -0400
commit32f0cbc0f6fc7a53fc88a144e42fea9aca2cd073 (patch)
tree6964e9d4f8456a9bc1b45125caf707f7341820fd /src/test/test_dir.c
parentf30d355903343af3611ed2ec9828c4b6d1851168 (diff)
downloadtor-32f0cbc0f6fc7a53fc88a144e42fea9aca2cd073.tar.gz
tor-32f0cbc0f6fc7a53fc88a144e42fea9aca2cd073.zip
Refactor exponential backoff multipliers into macros
There are only so many times you can type "4".
Diffstat (limited to 'src/test/test_dir.c')
-rw-r--r--src/test/test_dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_dir.c b/src/test/test_dir.c
index 4fddf7ab54..53911e8a26 100644
--- a/src/test/test_dir.c
+++ b/src/test/test_dir.c
@@ -3610,7 +3610,7 @@ download_status_random_backoff_helper(int min_delay, int max_delay)
int increment = -1;
int old_increment = -1;
time_t current_time = time(NULL);
- const int exponent = 4;
+ const int exponent = DIR_DEFAULT_RANDOM_MULTIPLIER + 1;
/* Check the random backoff cases */
do {