diff --git a/config/config.exs b/config/config.exs index 8233fe9..871a3d1 100644 --- a/config/config.exs +++ b/config/config.exs @@ -1,3 +1,3 @@ -use Mix.Config +import Config import_config "#{Mix.env()}.exs" diff --git a/config/dev.exs b/config/dev.exs index d2d855e..becde76 100644 --- a/config/dev.exs +++ b/config/dev.exs @@ -1 +1 @@ -use Mix.Config +import Config diff --git a/config/prod.exs b/config/prod.exs index d2d855e..becde76 100644 --- a/config/prod.exs +++ b/config/prod.exs @@ -1 +1 @@ -use Mix.Config +import Config diff --git a/config/test.exs b/config/test.exs index 0000cfb..983b681 100644 --- a/config/test.exs +++ b/config/test.exs @@ -1,4 +1,4 @@ -use Mix.Config +import Config config :spear, Spear.Test.ClientFixture, connection_string: "esdb://localhost:2113" diff --git a/test/spear/connection_test.exs b/test/spear/connection_test.exs index e7979d6..e0863c6 100644 --- a/test/spear/connection_test.exs +++ b/test/spear/connection_test.exs @@ -3,7 +3,7 @@ defmodule Spear.ConnectionTest do import ExUnit.CaptureLog - @good_config Application.fetch_env!(:spear, :config) + @good_config Application.compile_env!(:spear, :config) describe "given a connection_string leading nowhere" do setup do diff --git a/test/spear_test.exs b/test/spear_test.exs index d381346..133feaf 100644 --- a/test/spear_test.exs +++ b/test/spear_test.exs @@ -10,7 +10,7 @@ defmodule SpearTest do @max_append_bytes 1_048_576 @checkpoint_after 32 * 32 * 32 - @config Application.fetch_env!(:spear, :config) + @config Application.compile_env!(:spear, :config) setup do conn = start_supervised!({Spear.Connection, @config})