diff options
author | teor <teor@torproject.org> | 2020-04-01 22:35:07 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2020-04-09 11:00:04 +1000 |
commit | 726107856649719e913f4be2f68ee6bec07c4243 (patch) | |
tree | 447e632448dc79b94329ffb5bea81ceb6794faae /src/test/test_circuitbuild.c | |
parent | 3334f63516e8461e287fafa1a80e5ff893c8c70e (diff) | |
download | tor-726107856649719e913f4be2f68ee6bec07c4243.tar.gz tor-726107856649719e913f4be2f68ee6bec07c4243.zip |
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 (limited to 'src/test/test_circuitbuild.c')
-rw-r--r-- | src/test/test_circuitbuild.c | 4 |
1 files 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); } |