Skip to content

Commit 5c8f7d9

Browse files
committed
fix: use Oban.Pro.Testing if :pro? is enabled
1 parent 2e7e2ad commit 5c8f7d9

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

lib/test.ex

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,12 @@ defmodule AshOban.Test do
8484
"""
8585
defmacro __using__(opts) do
8686
quote do
87-
use Oban.Testing, unquote(opts)
87+
if Application.compile_env(:ash_oban, :pro?) do
88+
use Oban.Pro.Testing, unquote(opts)
89+
else
90+
use Oban.Testing, unquote(opts)
91+
end
92+
8893
import AshOban.Test
8994
end
9095
end

0 commit comments

Comments
 (0)