Fix test db connections: increase pool size and timeout

This commit is contained in:
Moritz 2026-01-24 02:06:21 +01:00
parent bebd7f6fe2
commit 195f1dbc88
Signed by: moritz
GPG key ID: 1020A035E5DD0824

View file

@ -12,7 +12,10 @@ config :mv, Mv.Repo,
port: System.get_env("TEST_POSTGRES_PORT", "5000"),
database: "mv_test#{System.get_env("MIX_TEST_PARTITION")}",
pool: Ecto.Adapters.SQL.Sandbox,
pool_size: System.schedulers_online() * 4
pool_size: System.schedulers_online() * 8,
queue_target: 5000,
queue_interval: 1000,
timeout: 30_000
# We don't run a server during test. If one is required,
# you can enable the server option below.