diff options
author | teor <teor2345@gmail.com> | 2017-05-26 16:16:37 +1000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-07-07 13:18:04 -0400 |
commit | c21cfd28f43a969229ede02e20c6b554c1b88aae (patch) | |
tree | 2062691f3f8ade9d982a80f6a9743b8bbfd84461 /src/test/test_dir.c | |
parent | ec61ae59a5d009a9e80f3bfa9a2aa5f5dfa05551 (diff) | |
download | tor-c21cfd28f43a969229ede02e20c6b554c1b88aae.tar.gz tor-c21cfd28f43a969229ede02e20c6b554c1b88aae.zip |
Make clients try fallbacks before authorities
Make clients wait for 6 seconds before trying to download their
consensus from an authority.
Fixes bug 17750, bugfix on 0.2.8.1-alpha.
Diffstat (limited to 'src/test/test_dir.c')
-rw-r--r-- | src/test/test_dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_dir.c b/src/test/test_dir.c index cdc56acb89..398398c22d 100644 --- a/src/test/test_dir.c +++ b/src/test/test_dir.c @@ -3806,7 +3806,7 @@ test_dir_download_status_increment(void *arg) tt_assert(next_at == TIME_MAX); tt_assert(download_status_get_n_failures(&dls_attempt) == 1); tt_assert(download_status_get_n_attempts(&dls_attempt) == 0); - tt_assert(mock_get_options_calls == 0); + tt_assert(mock_get_options_calls >= 1); /* Check that an attempt reset works */ mock_get_options_calls = 0; |