diff options
author | David Goulet <dgoulet@torproject.org> | 2024-09-25 18:34:43 +0000 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2024-09-25 18:34:43 +0000 |
commit | 364b8c292567fc2fada7639e50874fc719d7ce09 (patch) | |
tree | 6b87ea4561e505bda74de2f03b6a8f9f2aed59b1 | |
parent | a56350abc8a8c18bfe0b60c751cce5f851db0d3e (diff) | |
parent | 1da650adb4da218cd0b2105e8afa9a6412269e24 (diff) | |
download | tor-364b8c292567fc2fada7639e50874fc719d7ce09.tar.gz tor-364b8c292567fc2fada7639e50874fc719d7ce09.zip |
Merge branch 'fix-unittest' into 'main'
Fix unit test in test_entrynodes.c
See merge request tpo/core/tor!831
-rw-r--r-- | src/test/test_entrynodes.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test_entrynodes.c b/src/test/test_entrynodes.c index 118b66dfa7..7184e49c8c 100644 --- a/src/test/test_entrynodes.c +++ b/src/test/test_entrynodes.c @@ -1942,8 +1942,10 @@ test_entry_guard_select_for_circuit_no_confirmed(void *arg) tt_ptr_op(g2, OP_EQ, g); /* But if we impose a restriction, we don't get the same guard */ + get_options_mutable()->EnforceDistinctSubnets = 0; rst = guard_create_exit_restriction((uint8_t*)g->identity); g2 = select_entry_guard_for_circuit(gs, GUARD_USAGE_TRAFFIC, rst, &state); + tt_assert(g2); tt_ptr_op(g2, OP_NE, g); done: |