Skip to content

Commit

Permalink
Use existing helpers during cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
whitfin committed Dec 24, 2023
1 parent 5f2386a commit ee5c5ce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/lib/cachex_case/helper.ex
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,11 @@ defmodule CachexCase.Helper do
[name, [nodes: nodes] ++ args]
)

# cleanup the cache on exit
TestHelper.delete_on_exit(name)

# stop all children on exit, even though it's automatic
TestHelper.on_exit("stop #{name} children", fn ->
Supervisor.stop(name)

nodes
|> List.delete(node())
|> LocalCluster.stop_nodes()
Expand Down

0 comments on commit ee5c5ce

Please sign in to comment.