]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
test/circuitbuid: Fix new_route_len_unhandled_exit
authorteor <teor@torproject.org>
Wed, 1 Apr 2020 12:35:07 +0000 (22:35 +1000)
committerteor <teor@torproject.org>
Thu, 9 Apr 2020 01:00:04 +0000 (11:00 +1000)
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

index 6a83d2f8bd11815b6cb8ecd5ff870e433f393108..16a57785789309966670888424f626df1c8549c3 100644 (file)
@@ -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);
 }