aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_routerlist.c
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2018-11-29 00:46:39 +1000
committerteor <teor@torproject.org>2018-11-29 00:50:24 +1000
commit7a45bc74a430ff64f0696c77f075f9c830822413 (patch)
tree0c402006dd8c98ea659961cd49d6b5d988b3230d /src/test/test_routerlist.c
parentbd29b3531a48b41f6eee5b4a29769a13ef199298 (diff)
downloadtor-7a45bc74a430ff64f0696c77f075f9c830822413.tar.gz
tor-7a45bc74a430ff64f0696c77f075f9c830822413.zip
Dir: when Tor's clock is behind, use a future consensus to bootstrap
When Tor's clock is behind the clocks on the authorities, allow Tor to bootstrap successfully. Fixes bug 28591; bugfix on 0.2.0.9-alpha.
Diffstat (limited to 'src/test/test_routerlist.c')
-rw-r--r--src/test/test_routerlist.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/test/test_routerlist.c b/src/test/test_routerlist.c
index 67af2fd484..6ba4877b91 100644
--- a/src/test/test_routerlist.c
+++ b/src/test/test_routerlist.c
@@ -301,7 +301,6 @@ test_router_pick_directory_server_impl(void *arg)
tt_assert(!networkstatus_consensus_is_bootstrapping(con_md->valid_until
+ 24*60*60));
/* These times are outside the test validity period */
- tt_assert(networkstatus_consensus_is_bootstrapping(now));
tt_assert(networkstatus_consensus_is_bootstrapping(now + 2*24*60*60));
tt_assert(networkstatus_consensus_is_bootstrapping(now - 2*24*60*60));