prevent SQLite lock masked AI test failures

This commit is contained in:
Marco0300
2026-09-10 09:17:21 +02:00
parent a2320ecdc8
commit 715c414f43
+1
View File
@@ -378,6 +378,7 @@ def db() -> sqlite3.Connection:
conn = sqlite3.connect(DB_PATH, timeout=30) conn = sqlite3.connect(DB_PATH, timeout=30)
conn.row_factory = sqlite3.Row conn.row_factory = sqlite3.Row
conn.execute("PRAGMA busy_timeout=30000") conn.execute("PRAGMA busy_timeout=30000")
conn.execute("PRAGMA journal_mode=WAL")
if _schema_path == DB_PATH: if _schema_path == DB_PATH:
return conn return conn
_schema_lock.acquire() _schema_lock.acquire()