diff options
author | David Goulet <dgoulet@torproject.org> | 2020-02-11 10:15:04 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2020-02-11 10:15:04 -0500 |
commit | 33414e5494b56f3f677d022bfb4bb1ed99191032 (patch) | |
tree | 32619c30742fa06de03ad49dfede27077b9833f5 /src/feature/nodelist/dirlist.c | |
parent | 6d9113d2f65b6e3142efdaa91a5b4761cd197be8 (diff) | |
download | tor-33414e5494b56f3f677d022bfb4bb1ed99191032.tar.gz tor-33414e5494b56f3f677d022bfb4bb1ed99191032.zip |
test: Add unit test for connection_dir_is_global_write_low()
Part of #33029
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/nodelist/dirlist.c')
-rw-r--r-- | src/feature/nodelist/dirlist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/feature/nodelist/dirlist.c b/src/feature/nodelist/dirlist.c index df347889bf..749ff06a57 100644 --- a/src/feature/nodelist/dirlist.c +++ b/src/feature/nodelist/dirlist.c @@ -66,8 +66,8 @@ add_trusted_dir_to_nodelist_addr_set(const dir_server_t *dir) /** Go over the trusted directory server list and add their address(es) to the * nodelist address set. This is called everytime a new consensus is set. */ -void -dirlist_add_trusted_addresses(void) +MOCK_IMPL(void, +dirlist_add_trusted_addresses, (void)) { if (!trusted_dir_servers) { return; |