Skip to content

Commit

Permalink
don't use test env in config tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslandoga authored and zoldar committed Jul 15, 2024
1 parent 9572c28 commit 70db00b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/plausible/config_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -349,10 +349,11 @@ defmodule Plausible.ConfigTest do

describe "postgres" do
test "default" do
config = runtime_config(_env = [])
env = [{"DATABASE_URL", nil}]
config = runtime_config(env)

assert get_in(config, [:plausible, Plausible.Repo]) == [
url: "postgres://postgres:postgres@127.0.0.1:5432/plausible_test?pool_size=40",
url: "postgres://postgres:postgres@plausible_db:5432/plausible_db",
socket_options: [],
ssl_opts: [
cacertfile: CAStore.file_path(),
Expand Down

0 comments on commit 70db00b

Please sign in to comment.