From 2f7a060f955ee8bd25b67bef5825c988f1fc9445 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Sun, 12 Apr 2026 09:38:58 -0500 Subject: [PATCH] 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. --- config/test.exs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/test.exs b/config/test.exs index 538a5c16..b1a8cf5f 100644 --- a/config/test.exs +++ b/config/test.exs @@ -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.