Increase test DB query timeout to 60s

The ownership_timeout controls how long a process can hold a checkout,
but the per-query Postgrex timeout (default 15s) is separate. Oban
inline mode chains workers synchronously, so individual queries can
exceed 15s under concurrent test load.
This commit is contained in:
Graham McIntire 2026-04-12 09:38:58 -05:00
parent 3db8bc85a1
commit 2f7a060f95

View file

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