From: Mike Verdone Date: Mon, 22 Jul 2019 07:10:30 +0000 (+0200) Subject: Make test.exs read config in the same way as dev.exs X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=b72940277470c67802b979e4cab44f277e8fffb3;p=akkoma 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. --- 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