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.)
This commit is contained in:
teor 2020-04-01 22:35:07 +10:00
parent 3334f63516
commit 7261078566

View 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);
}