[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Repair unit test that assumed we have 9 dirauths.
commit e99cc8740f793ba3796408c6f23bf35f12572193
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Tue Jul 5 12:52:19 2016 -0400
Repair unit test that assumed we have 9 dirauths.
---
src/test/test_config.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/test/test_config.c b/src/test/test_config.c
index 6d9b491..90ea4da 100644
--- a/src/test/test_config.c
+++ b/src/test/test_config.c
@@ -1630,10 +1630,10 @@ test_config_adding_default_trusted_dir_servers(void *arg)
tt_assert(get_n_authorities(BRIDGE_DIRINFO) == 1);
tt_assert(smartlist_len(router_get_fallback_dir_servers()) == 1);
- /* Assume we have nine V3 authorities */
+ /* Assume we have eight V3 authorities */
add_default_trusted_dir_authorities(V3_DIRINFO);
- tt_assert(get_n_authorities(V3_DIRINFO) == 9);
- tt_assert(smartlist_len(router_get_fallback_dir_servers()) == 10);
+ tt_int_op(get_n_authorities(V3_DIRINFO), OP_EQ, 8);
+ tt_int_op(smartlist_len(router_get_fallback_dir_servers()), OP_EQ, 9);
done:
clear_dir_servers();
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits