Skip to content

Commit

Permalink
Let Elixir manage applications
Browse files Browse the repository at this point in the history
This fixes warnings on Elixir >= 1.11
  • Loading branch information
albertored committed Aug 19, 2021
1 parent c82b0a3 commit 3a6f606
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 1 addition & 4 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,9 @@ defmodule ExSieve.Mixfile do
end

def application do
[applications: applications(Mix.env())]
[extra_applications: [:logger]]
end

defp applications(:test), do: [:postgrex, :ecto, :logger, :ex_machina, :ex_unit]
defp applications(_), do: [:logger]

defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]

Expand Down
5 changes: 5 additions & 0 deletions test/test_helper.exs
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,9 @@ defmodule ExSieve.TestCase do
end
end

ExUnit.start()

apps = [:postgrex, :ecto, :ex_machina]
Enum.map(apps, &Application.ensure_all_started/1)

ExSieve.Repo.start_link()

0 comments on commit 3a6f606

Please sign in to comment.