aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_config.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-11-29 12:05:36 -0500
committerNick Mathewson <nickm@torproject.org>2017-11-29 12:05:36 -0500
commiteb1976202e289d44633127d9dd2d6f96df832def (patch)
treeb38392c8c486c118f9bf62b852b23c365af38640 /src/test/test_config.c
parenta94c4861027015b4ca4c6a9512fc36512196fea4 (diff)
downloadtor-eb1976202e289d44633127d9dd2d6f96df832def.tar.gz
tor-eb1976202e289d44633127d9dd2d6f96df832def.zip
Fix unit tests for 24050.
Diffstat (limited to 'src/test/test_config.c')
-rw-r--r--src/test/test_config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_config.c b/src/test/test_config.c
index 89f9b3e2aa..88a0da981e 100644
--- a/src/test/test_config.c
+++ b/src/test/test_config.c
@@ -4118,7 +4118,7 @@ test_config_parse_port_config__ports__ports_given(void *data)
tt_int_op(port_cfg->entry_cfg.dns_request, OP_EQ, 1);
tt_int_op(port_cfg->entry_cfg.ipv4_traffic, OP_EQ, 1);
tt_int_op(port_cfg->entry_cfg.onion_traffic, OP_EQ, 1);
- tt_int_op(port_cfg->entry_cfg.cache_ipv4_answers, OP_EQ, 1);
+ tt_int_op(port_cfg->entry_cfg.cache_ipv4_answers, OP_EQ, 0);
tt_int_op(port_cfg->entry_cfg.prefer_ipv6_virtaddr, OP_EQ, 1);
#endif
@@ -4454,7 +4454,7 @@ test_config_parse_port_config__ports__ports_given(void *data)
tt_int_op(ret, OP_EQ, 0);
tt_int_op(smartlist_len(slout), OP_EQ, 1);
port_cfg = (port_cfg_t *)smartlist_get(slout, 0);
- tt_int_op(port_cfg->entry_cfg.cache_ipv4_answers, OP_EQ, 1);
+ tt_int_op(port_cfg->entry_cfg.cache_ipv4_answers, OP_EQ, 0);
tt_int_op(port_cfg->entry_cfg.cache_ipv6_answers, OP_EQ, 1);
// Test success with no cache ipv4 DNS