summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-09-23 12:38:43 -0400
committerNick Mathewson <nickm@torproject.org>2014-09-23 12:38:43 -0400
commit482e3cfa0969775233d3f903639c44f32ddaf820 (patch)
treedcbc7f4002bda5977f6f5d326c174504c1a57f35 /src
parent02464694b2fa901e04b8a8f1c467a0773e6d4c27 (diff)
downloadtor-482e3cfa0969775233d3f903639c44f32ddaf820.tar.gz
tor-482e3cfa0969775233d3f903639c44f32ddaf820.zip
fixup! Unit tests for router download functions.
Fix compilation warnings
Diffstat (limited to 'src')
-rw-r--r--src/test/test_dir.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/test_dir.c b/src/test/test_dir.c
index f6ea6f3775..c7f248028a 100644
--- a/src/test/test_dir.c
+++ b/src/test/test_dir.c
@@ -2372,12 +2372,12 @@ static void
test_dir_fetch_type(void *arg)
{
(void)arg;
- test_eq(dir_fetch_type(DIR_PURPOSE_FETCH_MICRODESC, ROUTER_PURPOSE_GENERAL,
- NULL), MICRODESC_DIRINFO);
- test_eq(dir_fetch_type(DIR_PURPOSE_FETCH_SERVERDESC, ROUTER_PURPOSE_BRIDGE,
- NULL), BRIDGE_DIRINFO);
- test_eq(dir_fetch_type(DIR_PURPOSE_FETCH_CONSENSUS, ROUTER_PURPOSE_GENERAL,
- "microdesc"), V3_DIRINFO | MICRODESC_DIRINFO);
+ tt_assert(dir_fetch_type(DIR_PURPOSE_FETCH_MICRODESC, ROUTER_PURPOSE_GENERAL,
+ NULL) == MICRODESC_DIRINFO);
+ tt_assert(dir_fetch_type(DIR_PURPOSE_FETCH_SERVERDESC, ROUTER_PURPOSE_BRIDGE,
+ NULL) == BRIDGE_DIRINFO);
+ tt_assert(dir_fetch_type(DIR_PURPOSE_FETCH_CONSENSUS, ROUTER_PURPOSE_GENERAL,
+ "microdesc") == (V3_DIRINFO | MICRODESC_DIRINFO));
done: ;
}