diff options
author | David Goulet <dgoulet@torproject.org> | 2021-10-19 10:35:40 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2021-10-19 10:35:40 -0400 |
commit | 2a705e81a33879aad658ad2c824aeaa8e7f03eed (patch) | |
tree | 1cd05817ea3e9b54b9145620a23d1fe55cab8eb8 /src/test | |
parent | 9ac1ed525f6d21338d675f2898987a13d82f4b78 (diff) | |
parent | 326f954f10dc99fbebb10bb6962a44a3eeff424c (diff) | |
download | tor-2a705e81a33879aad658ad2c824aeaa8e7f03eed.tar.gz tor-2a705e81a33879aad658ad2c824aeaa8e7f03eed.zip |
Merge branch 'maint-0.4.6'
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test_hs_common.c | 10 | ||||
-rw-r--r-- | src/test/test_hs_config.c | 2 |
2 files changed, 5 insertions, 7 deletions
diff --git a/src/test/test_hs_common.c b/src/test/test_hs_common.c index 7cb6a36f8e..347a5b7174 100644 --- a/src/test/test_hs_common.c +++ b/src/test/test_hs_common.c @@ -808,13 +808,11 @@ test_parse_extended_hostname(void *arg) tt_assert(parse_extended_hostname(address4, &type)); tt_int_op(type, OP_EQ, NORMAL_HOSTNAME); - tt_assert(parse_extended_hostname(address5, &type)); - tt_int_op(type, OP_EQ, ONION_V2_HOSTNAME); - tt_str_op(address5, OP_EQ, "abcdefghijklmnop"); + tt_assert(!parse_extended_hostname(address5, &type)); + tt_int_op(type, OP_EQ, BAD_HOSTNAME); - tt_assert(parse_extended_hostname(address6, &type)); - tt_int_op(type, OP_EQ, ONION_V2_HOSTNAME); - tt_str_op(address6, OP_EQ, "abcdefghijklmnop"); + tt_assert(!parse_extended_hostname(address6, &type)); + tt_int_op(type, OP_EQ, BAD_HOSTNAME); tt_assert(!parse_extended_hostname(address7, &type)); tt_int_op(type, OP_EQ, BAD_HOSTNAME); diff --git a/src/test/test_hs_config.c b/src/test/test_hs_config.c index 54a0b2336c..74f823f897 100644 --- a/src/test/test_hs_config.c +++ b/src/test/test_hs_config.c @@ -48,7 +48,7 @@ test_invalid_service(void *arg) setup_full_capture_of_logs(LOG_WARN); ret = helper_config_service(conf, 1); tt_int_op(ret, OP_EQ, -1); - expect_log_msg_containing("HiddenServiceVersion must be between 3 and 3"); + expect_log_msg_containing("HiddenServiceVersion must be 3, not 1"); teardown_capture_of_logs(); } |