fix: read PGHOST env var in test config for CI postgres hostname
CI sets PGHOST=postgres for the Docker service network, but test.exs hardcoded hostname to localhost, causing connection refused errors.
This commit is contained in:
parent
fe79561380
commit
0742308d10
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ config :aprsme, Aprsme.PromEx, disabled: true
|
||||||
config :aprsme, Aprsme.Repo,
|
config :aprsme, Aprsme.Repo,
|
||||||
username: "postgres",
|
username: "postgres",
|
||||||
password: "postgres",
|
password: "postgres",
|
||||||
hostname: "localhost",
|
hostname: System.get_env("PGHOST", "localhost"),
|
||||||
database: "aprsme_test#{System.get_env("MIX_TEST_PARTITION")}",
|
database: "aprsme_test#{System.get_env("MIX_TEST_PARTITION")}",
|
||||||
pool: Ecto.Adapters.SQL.Sandbox,
|
pool: Ecto.Adapters.SQL.Sandbox,
|
||||||
pool_size: pool_size,
|
pool_size: pool_size,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue