Search tests: Use on_exit for restoring `persistent_term` state
authorrinpatch <rinpatch@sdf.org>
Tue, 1 Dec 2020 16:45:25 +0000 (19:45 +0300)
committerrinpatch <rinpatch@sdf.org>
Tue, 1 Dec 2020 16:45:25 +0000 (19:45 +0300)
commitfc9ebe5073a8ddb6633dc7d3b084307f0c17bcba
tree5a5b65954813ad75879c843475a29e19a4dc02b8
parent5a5ff508aa47d5cf64f7be5938a9561e856854dd
Search tests: Use on_exit for restoring `persistent_term` state

Otherwise if the assertion failed, the code below which resets the
state would never be reached
test/pleroma/activity/search_test.exs
test/pleroma/web/mastodon_api/controllers/search_controller_test.exs