diff --git a/lib/oban/config.ex b/lib/oban/config.ex index c572638e..2284c8a9 100644 --- a/lib/oban/config.ex +++ b/lib/oban/config.ex @@ -164,9 +164,10 @@ defmodule Oban.Config do end defp inline_testing?(pid, default) do - {:dictionary, dictionary} = Process.info(pid, :dictionary) - - Keyword.get(dictionary, :oban_testing, default) == :inline + case Process.info(pid, :dictionary) do + {:dictionary, dictionary} -> Keyword.get(dictionary, :oban_testing, default) == :inline + _ -> false + end end @doc false