From a44790362a28fc3a533240df9c3625a1a9d2e59c Mon Sep 17 00:00:00 2001 From: jamey Date: Sat, 31 Jan 2026 14:29:24 +0000 Subject: [PATCH] fix: resolve sqlite database busy errors in tests - enable WAL journal mode for better concurrent access - increase busy_timeout to 10s - reduce pool_size to 1 to prevent write conflicts Co-Authored-By: Claude Opus 4.5 --- config/test.exs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/test.exs b/config/test.exs index dc8c193..3e7e396 100644 --- a/config/test.exs +++ b/config/test.exs @@ -10,8 +10,10 @@ config :bcrypt_elixir, :log_rounds, 1 # Run `mix help test` for more information. config :simpleshop_theme, SimpleshopTheme.Repo, database: Path.expand("../simpleshop_theme_test.db", __DIR__), - pool_size: 5, - pool: Ecto.Adapters.SQL.Sandbox + pool_size: 1, + pool: Ecto.Adapters.SQL.Sandbox, + journal_mode: :wal, + busy_timeout: 10_000 # We don't run a server during test. If one is required, # you can enable the server option below.