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,
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,

Loading…
Cancel
Save