summaryrefslogtreecommitdiff
path: root/src/or/test.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-11-03 16:36:15 +0000
committerNick Mathewson <nickm@torproject.org>2008-11-03 16:36:15 +0000
commit73c6cb8353355d5895b67252ac28489428263875 (patch)
treec96f4762c6ede18ff7ebac50cfd415d77335940a /src/or/test.c
parent3f84ed3d46f52e3a147dfd205d3e76aa27254cf8 (diff)
downloadtor-73c6cb8353355d5895b67252ac28489428263875.tar.gz
tor-73c6cb8353355d5895b67252ac28489428263875.zip
Fix unit test failure related to intro point parsing.
svn:r17188
Diffstat (limited to 'src/or/test.c')
-rw-r--r--src/or/test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/test.c b/src/or/test.c
index cf142d279a..c90a35db0b 100644
--- a/src/or/test.c
+++ b/src/or/test.c
@@ -4262,8 +4262,8 @@ test_rend_fns_v2(void)
test_assert(parsed);
test_memeq(((rend_encoded_v2_service_descriptor_t *)
smartlist_get(descs, 0))->desc_id, parsed_desc_id, DIGEST_LEN);
- test_assert(rend_parse_introduction_points(parsed, intro_points_encrypted,
- intro_points_size) == 3);
+ test_eq(rend_parse_introduction_points(parsed, intro_points_encrypted,
+ intro_points_size), 3);
test_assert(!crypto_pk_cmp_keys(generated->pk, parsed->pk));
test_eq(parsed->timestamp, now);
test_eq(parsed->version, 2);