fix(tests) Make tests work with docker-based postgres
This commit is contained in:
parent
66b094e3d5
commit
46c79ac512
2 changed files with 2 additions and 1 deletions
2
Justfile
2
Justfile
|
|
@ -28,7 +28,7 @@ audit:
|
||||||
mix deps.audit
|
mix deps.audit
|
||||||
mix hex.audit
|
mix hex.audit
|
||||||
|
|
||||||
test:
|
test: install-dependencies start-database
|
||||||
mix test
|
mix test
|
||||||
|
|
||||||
format:
|
format:
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ config :mv, Mv.Repo,
|
||||||
username: "postgres",
|
username: "postgres",
|
||||||
password: "postgres",
|
password: "postgres",
|
||||||
hostname: System.get_env("TEST_POSTGRES_HOST", "localhost"),
|
hostname: System.get_env("TEST_POSTGRES_HOST", "localhost"),
|
||||||
|
port: 5000,
|
||||||
database: "mv_test#{System.get_env("MIX_TEST_PARTITION")}",
|
database: "mv_test#{System.get_env("MIX_TEST_PARTITION")}",
|
||||||
pool: Ecto.Adapters.SQL.Sandbox,
|
pool: Ecto.Adapters.SQL.Sandbox,
|
||||||
pool_size: System.schedulers_online() * 2
|
pool_size: System.schedulers_online() * 2
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue