diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-12-18 13:36:41 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-12-18 13:36:41 -0500 |
commit | f5f35e900987bab063f4f0aea99bf82e03267dc4 (patch) | |
tree | b7ba17849723d6fe1d711e10b8a4252463e0761d /src/test/test_config.c | |
parent | a6c9fcc486f3a635b711ab0bea21e0a7494621de (diff) | |
download | tor-f5f35e900987bab063f4f0aea99bf82e03267dc4.tar.gz tor-f5f35e900987bab063f4f0aea99bf82e03267dc4.zip |
Fix config/directory_fetch after 12538 merge
Diffstat (limited to 'src/test/test_config.c')
-rw-r--r-- | src/test/test_config.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/test_config.c b/src/test/test_config.c index 098b0a8cf8..1b9e84dcf5 100644 --- a/src/test/test_config.c +++ b/src/test/test_config.c @@ -3575,6 +3575,8 @@ test_config_directory_fetch(void *arg) mock_advertised_server_mode_result = 1; mock_router_get_my_routerinfo_result = &routerinfo; + routerinfo.supports_tunnelled_dir_requests = 1; + options->RefuseUnknownExits = 1; tt_assert(server_mode(options) == 1); tt_assert(public_server_mode(options) == 1); @@ -3598,6 +3600,7 @@ test_config_directory_fetch(void *arg) memset(options, 0, sizeof(or_options_t)); options->DirPort_set = 1; options->ORPort_set = 1; + options->DirCache = 1; mock_router_pick_published_address_result = 0; mock_router_my_exit_policy_is_reject_star_result = 1; @@ -3629,6 +3632,7 @@ test_config_directory_fetch(void *arg) mock_advertised_server_mode_result = 1; routerinfo.dir_port = 0; + routerinfo.supports_tunnelled_dir_requests = 0; mock_router_get_my_routerinfo_result = &routerinfo; tt_assert(server_mode(options) == 1); tt_assert(public_server_mode(options) == 1); @@ -3638,6 +3642,7 @@ test_config_directory_fetch(void *arg) mock_advertised_server_mode_result = 1; routerinfo.dir_port = 1; + routerinfo.supports_tunnelled_dir_requests = 1; mock_router_get_my_routerinfo_result = &routerinfo; tt_assert(server_mode(options) == 1); tt_assert(public_server_mode(options) == 1); |