From 726107856649719e913f4be2f68ee6bec07c4243 Mon Sep 17 00:00:00 2001 From: teor Date: Wed, 1 Apr 2020 22:35:07 +1000 Subject: [PATCH] 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.) --- src/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 index 6a83d2f8bd..16a5778578 100644 --- 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); }