summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorteor <teor2345@gmail.com>2017-09-11 14:03:42 +1000
committerNick Mathewson <nickm@torproject.org>2017-09-12 10:38:25 -0400
commit1b5e34badb06bb1a844a6e70164fc5c894d95d0a (patch)
tree824e01c879fdb74f9cacb501dbd5350434c7db82 /src/test
parent93a8ed3b83b5f20768562ca2aff4eba7aca667d8 (diff)
downloadtor-1b5e34badb06bb1a844a6e70164fc5c894d95d0a.tar.gz
tor-1b5e34badb06bb1a844a6e70164fc5c894d95d0a.zip
Add a missing bridge download status reset
17750 made unused download schedules automatically reset. But we should make that explicit.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test_entrynodes.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test_entrynodes.c b/src/test/test_entrynodes.c
index f30bb5ffa1..d87670d82b 100644
--- a/src/test/test_entrynodes.c
+++ b/src/test/test_entrynodes.c
@@ -917,6 +917,7 @@ test_entry_guard_node_filter(void *arg)
routerset_parse(get_options_mutable()->ExcludeNodes, "144.144.0.0/16", "");
/* 4: Bridge. */
+ get_options_mutable()->UseBridges = 1;
sweep_bridge_list();
bl = tor_malloc_zero(sizeof(bridge_line_t));
tor_addr_from_ipv4h(&bl->addr, n[4]->rs->addr);
@@ -924,6 +925,7 @@ test_entry_guard_node_filter(void *arg)
memcpy(bl->digest, n[4]->identity, 20);
bridge_add_from_config(bl);
bl = NULL; // prevent free.
+ get_options_mutable()->UseBridges = 0;
/* 5: Unreachable. This stays in the filter, but isn't in usable-filtered */
g[5]->last_tried_to_connect = approx_time(); // prevent retry.