diff options
author | Mike Verdone <spiral@arcseconds.net> | 2019-07-22 09:10:30 +0200 |
---|---|---|
committer | Mike Verdone <spiral@arcseconds.net> | 2019-07-24 13:14:52 +0200 |
commit | b72940277470c67802b979e4cab44f277e8fffb3 (patch) | |
tree | 6115d6f9352da9d7bdf06bd49b92fb5e29e03e3d | |
parent | 8ba7a151adf77c5cc47d6e1364a6078cc4bdef98 (diff) | |
download | pleroma-b72940277470c67802b979e4cab44f277e8fffb3.tar.gz pleroma-b72940277470c67802b979e4cab44f277e8fffb3.zip |
Make test.exs read config in the same way as dev.exs
This way, if your test.secret.exs has an error, you'll actually see it.
-rw-r--r-- | config/test.exs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/config/test.exs b/config/test.exs index 92dca18bc..3f606aa81 100644 --- a/config/test.exs +++ b/config/test.exs @@ -82,11 +82,10 @@ IO.puts("RUM enabled: #{rum_enabled}") config :pleroma, Pleroma.ReverseProxy.Client, Pleroma.ReverseProxy.ClientMock -try do +if File.exists?("./config/test.secret.exs") do import_config "test.secret.exs" -rescue - _ -> - IO.puts( - "You may want to create test.secret.exs to declare custom database connection parameters." - ) +else + IO.puts( + "You may want to create test.secret.exs to declare custom database connection parameters." + ) end |