Open RichDom2185 opened 1 year ago
Weird, I do not see the child_spec
but it works doing the following:
test "testing supervisor" do
children = [
{Guardian.DB.Sweeper, [interval: 60 * 60 * 1000]}
]
assert {:ok, pid} = Supervisor.start_link(children, strategy: :one_for_one)
assert %{active: 1, specs: 1, supervisors: 0, workers: 1} = Supervisor.count_children(pid)
end
What elixir and erlang version are you using?
Steps to Reproduce
Configure using the old (deprecated)
worker(...)
notation (as defined in the examples inlib/guardian/db.ex
):Expected Result
Configures the worker correctly, just like as if it were called using the new notation (as defined in the README):
Actual Result