diff options
author | David Goulet <dgoulet@torproject.org> | 2017-11-01 11:39:52 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2017-11-01 11:39:52 -0400 |
commit | 198ede53147dc3a33384e836b1ad9c64e95d0232 (patch) | |
tree | 39961146fb4d344ca965ac49c6b4a46c2898c6b0 /src/test | |
parent | 9635843342cb98340a965c40d9afcbe69c8d12df (diff) | |
download | tor-198ede53147dc3a33384e836b1ad9c64e95d0232.tar.gz tor-198ede53147dc3a33384e836b1ad9c64e95d0232.zip |
test: Fix SR initialization in routerlist test
Fixes #24053
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test_routerlist.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/test_routerlist.c b/src/test/test_routerlist.c index 81451a4bc4..05d0820d83 100644 --- a/src/test/test_routerlist.c +++ b/src/test/test_routerlist.c @@ -454,7 +454,10 @@ test_directory_guard_fetch_with_no_dirinfo(void *arg) (void) arg; /* Initialize the SRV subsystem */ + MOCK(get_my_v3_authority_cert, get_my_v3_authority_cert_m); + mock_cert = authority_cert_parse_from_string(AUTHORITY_CERT_1, NULL); sr_init(0); + UNMOCK(get_my_v3_authority_cert); /* Initialize the entry node configuration from the ticket */ options->UseEntryGuards = 1; |