]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Update entrynodes unit test for dirs
authorSebastian Hahn <sebastian@torproject.org>
Wed, 1 Apr 2015 19:08:24 +0000 (21:08 +0200)
committerSebastian Hahn <sebastian@torproject.org>
Wed, 1 Apr 2015 19:10:39 +0000 (21:10 +0200)
We no longer base our opinion on whether someone is a directory solely
on the routerstatus we might have for that relay, but also on a
routerinfo. Remove logic in test checking that. This broke unit tests in
05f7336624d6a47b3cf0f.

Reported by toralf on #tor-dev, thanks!

src/test/test_entrynodes.c

index 17cb9d9329fde9fc26aba7b47e3234ab6485c31b..0011d3698a14a17ac24f1354c8ded99769fab04c 100644 (file)
@@ -162,9 +162,6 @@ populate_live_entry_guards_test_helper(int num_needed)
        False, all guards should have made_contact enabled. */
     tt_int_op(entry->made_contact, OP_EQ, 1);
 
-    /* Since we don't have a routerstatus, all of the entry guards are
-       not directory servers. */
-    tt_int_op(entry->is_dir_cache, OP_EQ, 0);
   } SMARTLIST_FOREACH_END(entry);
 
   /* First, try to get some fast guards. This should fail. */