From 46c79ac512d72558e3ce4ca20ae042cbb2c8a6af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Eppl=C3=A9e?= Date: Thu, 12 Jun 2025 17:37:03 +0200 Subject: [PATCH] fix(tests) Make tests work with docker-based postgres --- Justfile | 2 +- config/test.exs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Justfile b/Justfile index 78e26c0..03debd1 100644 --- a/Justfile +++ b/Justfile @@ -28,7 +28,7 @@ audit: mix deps.audit mix hex.audit -test: +test: install-dependencies start-database mix test format: diff --git a/config/test.exs b/config/test.exs index 00a6a7f..68beeb0 100644 --- a/config/test.exs +++ b/config/test.exs @@ -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