mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-09-22 05:54:58 +02:00
fixup! Unit tests for router download functions.
Fix compilation warnings
This commit is contained in:
parent
02464694b2
commit
482e3cfa09
@ -2372,12 +2372,12 @@ static void
|
|||||||
test_dir_fetch_type(void *arg)
|
test_dir_fetch_type(void *arg)
|
||||||
{
|
{
|
||||||
(void)arg;
|
(void)arg;
|
||||||
test_eq(dir_fetch_type(DIR_PURPOSE_FETCH_MICRODESC, ROUTER_PURPOSE_GENERAL,
|
tt_assert(dir_fetch_type(DIR_PURPOSE_FETCH_MICRODESC, ROUTER_PURPOSE_GENERAL,
|
||||||
NULL), MICRODESC_DIRINFO);
|
NULL) == MICRODESC_DIRINFO);
|
||||||
test_eq(dir_fetch_type(DIR_PURPOSE_FETCH_SERVERDESC, ROUTER_PURPOSE_BRIDGE,
|
tt_assert(dir_fetch_type(DIR_PURPOSE_FETCH_SERVERDESC, ROUTER_PURPOSE_BRIDGE,
|
||||||
NULL), BRIDGE_DIRINFO);
|
NULL) == BRIDGE_DIRINFO);
|
||||||
test_eq(dir_fetch_type(DIR_PURPOSE_FETCH_CONSENSUS, ROUTER_PURPOSE_GENERAL,
|
tt_assert(dir_fetch_type(DIR_PURPOSE_FETCH_CONSENSUS, ROUTER_PURPOSE_GENERAL,
|
||||||
"microdesc"), V3_DIRINFO | MICRODESC_DIRINFO);
|
"microdesc") == (V3_DIRINFO | MICRODESC_DIRINFO));
|
||||||
done: ;
|
done: ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user