ash_oban/lib/test.ex

12 lines
395 B
Elixir
Raw Normal View History

defmodule AshOban.Test do
@moduledoc "Helpers for testing ash_oban triggers"
@doc """
Calls `AshOban.schedule_and_run_triggers/2` with `drain_queues?: true`.
"""
2024-03-30 12:52:22 +13:00
def schedule_and_run_triggers(resources_or_domains_or_otp_apps, opts \\ []) do
opts = Keyword.put_new(opts, :drain_queues?, true)
2024-03-30 12:52:22 +13:00
AshOban.schedule_and_run_triggers(resources_or_domains_or_otp_apps, opts)
end
end