aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_hs_cache.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2021-01-12 10:46:25 -0500
committerDavid Goulet <dgoulet@torproject.org>2021-01-12 10:46:25 -0500
commit60da5d62225c975842ef57195b7243baa7033acb (patch)
treec355fe467bd86c209bc6f75c6eb5fec367fb0568 /src/test/test_hs_cache.c
parent4b39f46a611ff48ceb7ea212dbcdb2e5b6d26d3b (diff)
parent04b0263974c7ad1327e7a193884cf31d55f7949a (diff)
downloadtor-60da5d62225c975842ef57195b7243baa7033acb.tar.gz
tor-60da5d62225c975842ef57195b7243baa7033acb.zip
Merge branch 'ticket40237_035_01' into ticket40237_043_01
Diffstat (limited to 'src/test/test_hs_cache.c')
-rw-r--r--src/test/test_hs_cache.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/test/test_hs_cache.c b/src/test/test_hs_cache.c
index 8ea550b65f..e3be0e77ec 100644
--- a/src/test/test_hs_cache.c
+++ b/src/test/test_hs_cache.c
@@ -462,9 +462,10 @@ test_hsdir_revision_counter_check(void *arg)
static networkstatus_t mock_ns;
static networkstatus_t *
-mock_networkstatus_get_live_consensus(time_t now)
+mock_networkstatus_get_reasonably_live_consensus(time_t now, int flavor)
{
(void) now;
+ (void) flavor;
return &mock_ns;
}
@@ -485,8 +486,8 @@ test_client_cache(void *arg)
/* Initialize HSDir cache subsystem */
init_test();
- MOCK(networkstatus_get_live_consensus,
- mock_networkstatus_get_live_consensus);
+ MOCK(networkstatus_get_reasonably_live_consensus,
+ mock_networkstatus_get_reasonably_live_consensus);
/* Set consensus time */
parse_rfc1123_time("Sat, 26 Oct 1985 13:00:00 UTC",