]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Repair the legacy_hs/pick_tor2web_rendezvous_node unit test
authorNick Mathewson <nickm@torproject.org>
Mon, 16 Apr 2018 15:52:57 +0000 (11:52 -0400)
committerNick Mathewson <nickm@torproject.org>
Sun, 22 Apr 2018 23:43:07 +0000 (19:43 -0400)
It tried to pick nodes for which only routerinfo_t items are set,
but without setting UseMicroDescriptors to 0.  This won't work any
more, now that we're strict about using the right descriptor types
due to 25691/25692/25213.

src/test/test_hs.c

index 9189bb65bed0e827ae1335e5e29bd6d0a648640c..64448de51083919f428f5f98a07c2292c0b6394c 100644 (file)
@@ -361,6 +361,7 @@ test_pick_tor2web_rendezvous_node(void *arg)
 
   /* Parse Tor2webRendezvousPoints as a routerset. */
   options->Tor2webRendezvousPoints = routerset_new();
+  options->UseMicrodescriptors = 0;
   retval = routerset_parse(options->Tor2webRendezvousPoints,
                            tor2web_rendezvous_str,
                            "test_tor2web_rp");