diff --git a/apps/explorer/config/test.exs b/apps/explorer/config/test.exs index 9626facf30..764f2f6ed1 100644 --- a/apps/explorer/config/test.exs +++ b/apps/explorer/config/test.exs @@ -23,8 +23,13 @@ config :logger, :explorer, level: :warn, path: Path.absname("logs/test/explorer.log") -if File.exists?(file = "test.secret.exs") do - import_config file +secret_file = + __ENV__.file + |> Path.dirname() + |> Path.join("test.secret.exs") + +if File.exists?(secret_file) do + import_config secret_file end config :explorer, Explorer.ExchangeRates.Source.TransactionAndLog,