mirror of
https://github.com/netfun2000/hipudding-teslamate.git
synced 2026-02-27 09:44:28 +08:00
17 lines
554 B
Elixir
17 lines
554 B
Elixir
# FIXME Workaround to apply the logger config when running the tests with
|
|
# "--no-start". This looks like a bug in Elixir v1.11.0
|
|
Application.stop(:logger)
|
|
Application.start(:logger)
|
|
|
|
Application.load(:teslamate)
|
|
|
|
for app <- Application.spec(:teslamate, :applications) do
|
|
{:ok, _} = Application.ensure_all_started(app)
|
|
end
|
|
|
|
TeslaMate.Repo.start_link()
|
|
Phoenix.PubSub.Supervisor.start_link(name: TeslaMate.PubSub)
|
|
|
|
assert_timeout = String.to_integer(System.get_env("ELIXIR_ASSERT_TIMEOUT") || "300")
|
|
ExUnit.start(assert_receive_timeout: assert_timeout)
|