tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 726107856649719e913f4be2f68ee6bec07c4243
parent 3334f63516e8461e287fafa1a80e5ff893c8c70e
Author: teor <teor@torproject.org>
Date:   Wed,  1 Apr 2020 22:35:07 +1000

test/circuitbuid: Fix new_route_len_unhandled_exit

Make test_new_route_len_unhandled_exit more robust, by always tearing
down logs. (Rather than just tearing them down on success.)

Diffstat:
Msrc/test/test_circuitbuild.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/test/test_circuitbuild.c b/src/test/test_circuitbuild.c @@ -133,10 +133,10 @@ test_new_route_len_unhandled_exit(void *arg) "!(exit_ei && !known_purpose)"); expect_single_log_msg_containing("Unhandled purpose"); expect_single_log_msg_containing("with a chosen exit; assuming routelen"); - teardown_capture_of_logs(); - tor_end_capture_bugs_(); done: + teardown_capture_of_logs(); + tor_end_capture_bugs_(); UNMOCK(count_acceptable_nodes); }