diff options
author | David Goulet <dgoulet@torproject.org> | 2021-09-30 11:09:48 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2021-10-19 09:51:24 -0400 |
commit | 9a6c6e8ec5830d9d7bc2285c8b6ef336e7ab1ef9 (patch) | |
tree | faa974cfae449b26536865eba39654556bb51f41 /src/test/test_hs_common.c | |
parent | ef7a64e3b874231f6793b563ea36b512ba072c5b (diff) | |
download | tor-9a6c6e8ec5830d9d7bc2285c8b6ef336e7ab1ef9.tar.gz tor-9a6c6e8ec5830d9d7bc2285c8b6ef336e7ab1ef9.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_common.c')
-rw-r--r-- | src/test/test_hs_common.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/test/test_hs_common.c b/src/test/test_hs_common.c index c6104301e1..a763b62356 100644 --- a/src/test/test_hs_common.c +++ b/src/test/test_hs_common.c @@ -792,14 +792,11 @@ test_parse_extended_hostname(void *arg) "www.25njqamcweflpvkl73j4szahhihoc4xt3ktcgjnpaingr5yhkenl5sid.onion"; tt_assert(BAD_HOSTNAME == parse_extended_hostname(address1)); - tt_assert(ONION_V2_HOSTNAME == parse_extended_hostname(address2)); - tt_str_op(address2,OP_EQ, "aaaaaaaaaaaaaaaa"); + tt_assert(BAD_HOSTNAME == parse_extended_hostname(address2)); tt_assert(EXIT_HOSTNAME == parse_extended_hostname(address3)); tt_assert(NORMAL_HOSTNAME == parse_extended_hostname(address4)); - tt_assert(ONION_V2_HOSTNAME == parse_extended_hostname(address5)); - tt_str_op(address5,OP_EQ, "abcdefghijklmnop"); - tt_assert(ONION_V2_HOSTNAME == parse_extended_hostname(address6)); - tt_str_op(address6,OP_EQ, "abcdefghijklmnop"); + tt_assert(BAD_HOSTNAME == parse_extended_hostname(address5)); + tt_assert(BAD_HOSTNAME == parse_extended_hostname(address6)); tt_assert(BAD_HOSTNAME == parse_extended_hostname(address7)); tt_assert(ONION_V3_HOSTNAME == parse_extended_hostname(address8)); tt_str_op(address8, OP_EQ, |