aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_hs_service.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2021-09-30 11:09:48 -0400
committerDavid Goulet <dgoulet@torproject.org>2021-10-19 09:50:22 -0400
commit1589e6bf28c46b18ef3a4bd3d09833244cea88bf (patch)
treecd7887e0d5226fdddf1d077a910421b727cd4078 /src/test/test_hs_service.c
parentfb0c949df6a0db7c2d367b3d97b9c4a972be1c8d (diff)
downloadtor-1589e6bf28c46b18ef3a4bd3d09833244cea88bf.tar.gz
tor-1589e6bf28c46b18ef3a4bd3d09833244cea88bf.zip
test: Fix unit tests after disabling version 2
Some tests were removed because they were testing something not usable anymore. Some tests remains to make sure that things are indeed disabled. Part of #40476 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/test/test_hs_service.c')
-rw-r--r--src/test/test_hs_service.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/test/test_hs_service.c b/src/test/test_hs_service.c
index 66e8e2f473..287d25f825 100644
--- a/src/test/test_hs_service.c
+++ b/src/test/test_hs_service.c
@@ -403,10 +403,7 @@ test_load_keys(void *arg)
tor_asprintf(&conf, conf_fmt, hsdir_v2, HS_VERSION_TWO);
ret = helper_config_service(conf);
tor_free(conf);
- 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(rend_num_services(), OP_EQ, 1);
+ tt_int_op(ret, OP_EQ, -1);
/* v3 service. */
tor_asprintf(&conf, conf_fmt, hsdir_v3, HS_VERSION_THREE);