mix test
results in this error when it starts. Is the config setting wrong in test.exs?
** (Mix) Could not start application myapp: exited in: Myapp.Application.start(:normal, [])
** (EXIT) an exception was raised:
** (Protocol.UndefinedError) protocol Enumerable not implemented for false of type Atom. This protocol is implemented for the following type(s): DBConnection.PrepareStream, DBConnection.Stream, Date.Range, Ecto.Adapters.SQL.Stream, Explorer.Series.Iterator, File.Stream, Floki.HTMLTree, Function, GenEvent.Stream, HashDict, HashSet, IO.Stream, Iter, Jason.OrderedObject, List, Map, MapSet, Pfx, Phoenix.LiveView.LiveStream, Postgrex.Stream, Range, Rewrite, Stream, StreamData, Table.Mapper, Table.Zipper, Timex.Interval
(elixir 1.17.2) lib/enum.ex:1: Enumerable.impl_for!/1
(elixir 1.17.2) lib/enum.ex:166: Enumerable.reduce/3
(elixir 1.17.2) lib/enum.ex:4423: Enum.map/2
(elixir 1.17.2) lib/keyword.ex:1182: Keyword.update_guarded/4
(elixir 1.17.2) lib/keyword.ex:1186: Keyword.update_guarded/4
(ash_oban 0.2.5) lib/ash_oban.ex:539: AshOban.config/3
(myapp 1.2.3) lib/myapp/application.ex:52: Myapp.Application.start/2
application.ex
children = [
..
{Oban, AshOban.config([MyAppAPI, MyAppAPI2], oban_config())},
..
]
defp oban_config do
Application.fetch_env!(:myapp, Oban)
end
test.exs
config :myapp, Oban, queues: false, plugins: false