summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-03-26 09:57:39 -0400
committerNick Mathewson <nickm@torproject.org>2018-03-26 09:57:39 -0400
commit969a38a375f4e71fcb27bb24e36047824d0f3cc9 (patch)
tree796b5431d7623c70cad39663b9c19258dca0bf0a
parentd1874b433953f64b13a2feb0edc4bbff8940d503 (diff)
downloadtor-969a38a375f4e71fcb27bb24e36047824d0f3cc9.tar.gz
tor-969a38a375f4e71fcb27bb24e36047824d0f3cc9.zip
Fix a unit test which was broken by the previous commit
This test was expecting Tor to find and use routerinfos, but hadn't cleared the UseMicrodescriptors flag. Part of the fix for 25213.
-rw-r--r--src/test/test_hs_service.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/test_hs_service.c b/src/test/test_hs_service.c
index d62fcc8cab..2e5280610f 100644
--- a/src/test/test_hs_service.c
+++ b/src/test/test_hs_service.c
@@ -1237,6 +1237,10 @@ test_build_update_descriptors(void *arg)
node->is_running = node->is_valid = node->is_fast = node->is_stable = 1;
}
+ /* We have to set thise, or the lack of microdescriptors for these
+ * nodes will make them unusable. */
+ get_options_mutable()->UseMicrodescriptors = 0;
+
/* We expect to pick only one intro point from the node above. */
setup_full_capture_of_logs(LOG_INFO);
update_all_descriptors(now);