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:
parent
3db8bc85a1
commit
2f7a060f95
1 changed files with 2 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue