Fix loading of secrets file for test

pull/1047/head
fvictorio 6 years ago
parent a344bebf14
commit 73f70745dd
  1. 9
      apps/explorer/config/test.exs

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

Loading…
Cancel
Save