diff options
author | David Goulet <dgoulet@torproject.org> | 2021-02-24 13:55:30 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2021-02-24 13:55:30 -0500 |
commit | f75baf5ea53025dfd371f392ccfb685e9964b11e (patch) | |
tree | 2727452fa4aaa155f57d6727956675342a8a7250 /src/test | |
parent | 830b0f8c6290cf222527c0956ba6d7fe95688b83 (diff) | |
parent | 6ea7eb58c697d9e02090f63687803e921bc7c13f (diff) | |
download | tor-f75baf5ea53025dfd371f392ccfb685e9964b11e.tar.gz tor-f75baf5ea53025dfd371f392ccfb685e9964b11e.zip |
Merge branch 'maint-0.4.5'
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test_config.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/test/test_config.c b/src/test/test_config.c index 710336cb28..2ed55bb8a9 100644 --- a/src/test/test_config.c +++ b/src/test/test_config.c @@ -3980,27 +3980,6 @@ test_config_directory_fetch(void *arg) tt_int_op(networkstatus_consensus_can_use_multiple_directories(options), OP_EQ, 1); - /* OR servers only fetch the consensus from the authorities when they don't - * know their own address, but never use multiple directories for bootstrap - */ - or_options_free(options); - options = options_new(); - options->ORPort_set = 1; - - mock_relay_find_addr_to_publish_result = false; - tt_assert(server_mode(options) == 1); - tt_assert(public_server_mode(options) == 1); - tt_int_op(dirclient_fetches_from_authorities(options), OP_EQ, 1); - tt_int_op(networkstatus_consensus_can_use_multiple_directories(options), - OP_EQ, 0); - - mock_relay_find_addr_to_publish_result = true; - tt_assert(server_mode(options) == 1); - tt_assert(public_server_mode(options) == 1); - tt_int_op(dirclient_fetches_from_authorities(options), OP_EQ, 0); - tt_int_op(networkstatus_consensus_can_use_multiple_directories(options), - OP_EQ, 0); - /* Exit OR servers only fetch the consensus from the authorities when they * refuse unknown exits, but never use multiple directories for bootstrap */ |