aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-09-28 10:37:14 -0400
committerNick Mathewson <nickm@torproject.org>2020-09-28 10:37:14 -0400
commitf5ddc456472ed9198cda186e59239b5f7558c799 (patch)
treeb37e586382db4c54e8455f6680e54727368a9919 /src
parentbeffad8529c9b603bcf6b6e720747f6210c5c25c (diff)
parent79d777396858d008bb99d0f411953a5152b921b0 (diff)
downloadtor-f5ddc456472ed9198cda186e59239b5f7558c799.tar.gz
tor-f5ddc456472ed9198cda186e59239b5f7558c799.zip
Merge branch 'bug40133_035' into bug40133_043
Diffstat (limited to 'src')
-rw-r--r--src/test/test_connection.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/test/test_connection.c b/src/test/test_connection.c
index 7ed831f7d8..05f7009bf4 100644
--- a/src/test/test_connection.c
+++ b/src/test/test_connection.c
@@ -616,7 +616,8 @@ test_conn_download_status(void *arg)
connection_t *ap_conn = NULL;
const struct testcase_t *tc = arg;
- consensus_flavor_t usable_flavor = (consensus_flavor_t)tc->setup_data;
+ consensus_flavor_t usable_flavor =
+ networkstatus_parse_flavor_name((const char*) tc->setup_data);
/* The "other flavor" trick only works if there are two flavors */
tor_assert(N_CONSENSUS_FLAVORS == 2);
@@ -980,17 +981,17 @@ struct testcase_t connection_tests[] = {
CONNECTION_TESTCASE(get_rend, TT_FORK, test_conn_get_rend_st),
CONNECTION_TESTCASE(get_rsrc, TT_FORK, test_conn_get_rsrc_st),
- CONNECTION_TESTCASE_ARG(download_status, TT_FORK,
- test_conn_download_status_st, FLAV_MICRODESC),
- CONNECTION_TESTCASE_ARG(download_status, TT_FORK,
- test_conn_download_status_st, FLAV_NS),
+ CONNECTION_TESTCASE_ARG(download_status, TT_FORK,
+ test_conn_download_status_st, "microdesc"),
+ CONNECTION_TESTCASE_ARG(download_status, TT_FORK,
+ test_conn_download_status_st, "ns"),
CONNECTION_TESTCASE_ARG(https_proxy_connect, TT_FORK,
test_conn_proxy_connect_st, &PROXY_CONNECT_ARG),
CONNECTION_TESTCASE_ARG(haproxy_proxy_connect, TT_FORK,
test_conn_proxy_connect_st, &PROXY_HAPROXY_ARG),
-//CONNECTION_TESTCASE(func_suffix, TT_FORK, setup_func_pair),
+ //CONNECTION_TESTCASE(func_suffix, TT_FORK, setup_func_pair),
{ "failed_orconn_tracker", test_failed_orconn_tracker, TT_FORK, NULL, NULL },
END_OF_TESTCASES
};