diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-07-09 10:17:17 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-07-09 10:17:17 -0400 |
commit | 6ad2c2b92f275cbdf2911f03ffbd1ac708ec6fcc (patch) | |
tree | 8ac4e1de3cb8bf8f3a8ac7f4546b9554dc383bac | |
parent | 4a604d99382e4aad3df257e265c852f306f7bc7f (diff) | |
parent | ce692332b83a9eef1e0ca0ad649ef8cb081d711c (diff) | |
download | tor-6ad2c2b92f275cbdf2911f03ffbd1ac708ec6fcc.tar.gz tor-6ad2c2b92f275cbdf2911f03ffbd1ac708ec6fcc.zip |
Merge remote-tracking branch 'github/bug26269_031' into maint-0.3.2
-rw-r--r-- | src/test/test_entrynodes.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/test_entrynodes.c b/src/test/test_entrynodes.c index 80ebebe3f8..7d85b09e03 100644 --- a/src/test/test_entrynodes.c +++ b/src/test/test_entrynodes.c @@ -1125,6 +1125,7 @@ test_entry_guard_update_from_consensus_status(void *arg) for (i = 0; i < 5; ++i) { entry_guard_t *g = smartlist_get(gs->sampled_entry_guards, i); node_t *n = (node_t*) bfn_mock_node_get_by_id(g->identity); + tt_assert(n); n->is_possible_guard = 0; } @@ -1163,6 +1164,7 @@ test_entry_guard_update_from_consensus_status(void *arg) { entry_guard_t *g = smartlist_get(gs->sampled_entry_guards, 0); node_t *n = (node_t*) bfn_mock_node_get_by_id(g->identity); + tt_assert(n); n->is_possible_guard = 1; } { @@ -1170,6 +1172,7 @@ test_entry_guard_update_from_consensus_status(void *arg) */ entry_guard_t *g = smartlist_get(gs->sampled_entry_guards, 5); node_t *n = (node_t*) bfn_mock_node_get_by_id(g->identity); + tt_assert(n); smartlist_remove(big_fake_net_nodes, n); tor_free(n->rs); tor_free(n->md); @@ -1228,6 +1231,7 @@ test_entry_guard_update_from_consensus_repair(void *arg) /* these will get a date. */ entry_guard_t *g = smartlist_get(gs->sampled_entry_guards, i); node_t *n = (node_t*) bfn_mock_node_get_by_id(g->identity); + tt_assert(n); n->is_possible_guard = 0; g->currently_listed = 0; } @@ -1293,6 +1297,7 @@ test_entry_guard_update_from_consensus_remove(void *arg) { entry_guard_t *g = smartlist_get(gs->sampled_entry_guards, 0); node_t *n = (node_t*) bfn_mock_node_get_by_id(g->identity); + tt_assert(n); n->is_possible_guard = 0; g->currently_listed = 0; g->unlisted_since_date = one_day_ago; @@ -1302,6 +1307,7 @@ test_entry_guard_update_from_consensus_remove(void *arg) { entry_guard_t *g = smartlist_get(gs->sampled_entry_guards, 1); node_t *n = (node_t*) bfn_mock_node_get_by_id(g->identity); + tt_assert(n); n->is_possible_guard = 0; g->currently_listed = 0; g->unlisted_since_date = one_year_ago; |