From: Cecylia Bocovich Date: Tue, 24 Sep 2024 20:13:29 +0000 (-0400) Subject: Fix unit test in test_entrynodes.c X-Git-Tag: tor-0.4.9.1-alpha~22^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1da650adb4da218cd0b2105e8afa9a6412269e24;p=thirdparty%2Ftor.git Fix unit test in test_entrynodes.c --- 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: