aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-07-10 11:31:51 -0400
committerNick Mathewson <nickm@torproject.org>2017-08-08 20:29:34 -0400
commit4a8cf17897ca23f8352a27c1bffb6ebfd68a1e0e (patch)
treeecfa01e7deeb442e1b424172133ca50003f9115f /src/test
parenta6b6227b2141f8d9d36f8555253ec4d56f423b04 (diff)
downloadtor-4a8cf17897ca23f8352a27c1bffb6ebfd68a1e0e.tar.gz
tor-4a8cf17897ca23f8352a27c1bffb6ebfd68a1e0e.zip
hs: Rename num_rend_services()
Renamed to rend_num_services() so it is consistent with the legacy naming. Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test_hs_config.c2
-rw-r--r--src/test/test_hs_service.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_hs_config.c b/src/test/test_hs_config.c
index 4d4bbb8891..2a85a7db07 100644
--- a/src/test/test_hs_config.c
+++ b/src/test/test_hs_config.c
@@ -453,7 +453,7 @@ test_staging_service_v3(void *arg)
/* Ok, we have a service in our map! Registration went well. */
tt_int_op(get_hs_service_staging_list_size(), OP_EQ, 1);
/* Make sure we don't have a magic v2 service out of this. */
- tt_int_op(num_rend_services(), OP_EQ, 0);
+ tt_int_op(rend_num_services(), OP_EQ, 0);
done:
hs_free_all();
diff --git a/src/test/test_hs_service.c b/src/test/test_hs_service.c
index cb0ae2f455..1b8d8252eb 100644
--- a/src/test/test_hs_service.c
+++ b/src/test/test_hs_service.c
@@ -279,7 +279,7 @@ test_load_keys(void *arg)
tt_int_op(ret, OP_EQ, 0);
/* This one should now be registered into the v2 list. */
tt_int_op(get_hs_service_staging_list_size(), OP_EQ, 0);
- tt_int_op(num_rend_services(), OP_EQ, 1);
+ tt_int_op(rend_num_services(), OP_EQ, 1);
/* v3 service. */
tor_asprintf(&conf, conf_fmt, hsdir_v3, HS_VERSION_THREE);