diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/test/test_dir_common.c | 1 | ||||
-rw-r--r-- | src/test/test_routerlist.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/test/test_dir_common.c b/src/test/test_dir_common.c index 5c899a9d15..44ea93b437 100644 --- a/src/test/test_dir_common.c +++ b/src/test/test_dir_common.c @@ -143,6 +143,7 @@ dir_common_gen_routerstatus_for_v3ns(int idx, time_t now) rs->addr = 0xC0000203; rs->or_port = 500; rs->dir_port = 1999; + rs->is_v2_dir = 1; /* Running flag (and others) cleared */ break; case 4: diff --git a/src/test/test_routerlist.c b/src/test/test_routerlist.c index d86fe9c93c..090a60766c 100644 --- a/src/test/test_routerlist.c +++ b/src/test/test_routerlist.c @@ -241,6 +241,8 @@ test_router_pick_directory_server_impl(void *arg) node_router2 = node_get_mutable_by_id(router2_id); node_router3 = node_get_mutable_by_id(router3_id); + node_router1->is_possible_guard = 1; + node_router1->is_running = 0; node_router3->is_running = 0; rs = router_pick_directory_server_impl(V3_DIRINFO, flags, NULL); |