diff options
author | David Goulet <dgoulet@torproject.org> | 2021-02-03 08:54:40 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2021-02-03 08:54:40 -0500 |
commit | e50648582b6e0bc7bb37edc08e7a4d67b50f2c53 (patch) | |
tree | 4f307e0019d357ecd0787d771006b6e7ce3d9c20 /src/test | |
parent | 0f8195406e0a2a97a3167d4bb40484f4bd091289 (diff) | |
parent | c2cee6c780a1329a6906e91dc6f7854635727691 (diff) | |
download | tor-e50648582b6e0bc7bb37edc08e7a4d67b50f2c53.tar.gz tor-e50648582b6e0bc7bb37edc08e7a4d67b50f2c53.zip |
Merge branch 'maint-0.3.5' into maint-0.4.3
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test_address_set.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/test_address_set.c b/src/test/test_address_set.c index 4c99008ae3..c2fe718935 100644 --- a/src/test/test_address_set.c +++ b/src/test/test_address_set.c @@ -216,8 +216,8 @@ test_exit_no_reentry(void *arg) nodelist_set_consensus(dummy_ns); /* The address set is empty. Try it anyway */ - tt_assert(!nodelist_reentry_probably_contains(&addr_v4, 244)); - tt_assert(!nodelist_reentry_probably_contains(&addr_v6, 244)); + tt_assert(!nodelist_reentry_contains(&addr_v4, 244)); + tt_assert(!nodelist_reentry_contains(&addr_v6, 244)); /* Now let's populate the network */ md = tor_malloc_zero(sizeof(*md)); @@ -244,12 +244,12 @@ test_exit_no_reentry(void *arg) /* First let's try an address that is on the no-reentry list, but with a different port */ - tt_assert(!nodelist_reentry_probably_contains(&addr_v4, 666)); - tt_assert(!nodelist_reentry_probably_contains(&addr_v6, 444)); + tt_assert(!nodelist_reentry_contains(&addr_v4, 666)); + tt_assert(!nodelist_reentry_contains(&addr_v6, 444)); /* OK now let's try with the right address and right port */ - tt_assert(nodelist_reentry_probably_contains(&addr_v4, 444)); - tt_assert(nodelist_reentry_probably_contains(&addr_v6, 666)); + tt_assert(nodelist_reentry_contains(&addr_v4, 444)); + tt_assert(nodelist_reentry_contains(&addr_v6, 666)); done: routerstatus_free(rs); routerinfo_free(ri); microdesc_free(md); |