Increase test DB ownership timeout to 60s

Prevents sporadic sandbox timeout failures under full concurrent
test load (24 async cases competing for DB connections).
This commit is contained in:
Graham McIntire 2026-04-12 09:37:07 -05:00
parent 48b365af5e
commit 2769e1a948

View file

@ -20,7 +20,8 @@ config :microwaveprop, Microwaveprop.Repo,
hostname: "localhost",
database: "microwaveprop_test#{System.get_env("MIX_TEST_PARTITION")}",
pool: Ecto.Adapters.SQL.Sandbox,
pool_size: System.schedulers_online() * 2
pool_size: System.schedulers_online() * 2,
ownership_timeout: 60_000
# We don't run a server during test. If one is required,
# you can enable the server option below.