fix(tests) Make tests work with docker-based postgres

This commit is contained in:
Rafael Epplée 2025-06-12 17:37:03 +02:00 committed by Moritz
parent 66b094e3d5
commit 46c79ac512
Signed by: moritz
GPG key ID: 1020A035E5DD0824
2 changed files with 2 additions and 1 deletions

View file

@ -28,7 +28,7 @@ audit:
mix deps.audit
mix hex.audit
test:
test: install-dependencies start-database
mix test
format:

View file

@ -9,6 +9,7 @@ config :mv, Mv.Repo,
username: "postgres",
password: "postgres",
hostname: System.get_env("TEST_POSTGRES_HOST", "localhost"),
port: 5000,
database: "mv_test#{System.get_env("MIX_TEST_PARTITION")}",
pool: Ecto.Adapters.SQL.Sandbox,
pool_size: System.schedulers_online() * 2