]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a unit test which was broken by the previous commit
authorNick Mathewson <nickm@torproject.org>
Mon, 26 Mar 2018 13:57:39 +0000 (09:57 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 26 Mar 2018 13:57:39 +0000 (09:57 -0400)
This test was expecting Tor to find and use routerinfos, but hadn't
cleared the UseMicrodescriptors flag.  Part of the fix for 25213.

src/test/test_hs_service.c

index d62fcc8cab6bf177310637b67bae3a60abcf715a..2e5280610f562eda8752a8652f4a08700136bc29 100644 (file)
@@ -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);