prevent SQLite lock masked AI test failures
This commit is contained in:
@@ -378,6 +378,7 @@ def db() -> sqlite3.Connection:
|
||||
conn = sqlite3.connect(DB_PATH, timeout=30)
|
||||
conn.row_factory = sqlite3.Row
|
||||
conn.execute("PRAGMA busy_timeout=30000")
|
||||
conn.execute("PRAGMA journal_mode=WAL")
|
||||
if _schema_path == DB_PATH:
|
||||
return conn
|
||||
_schema_lock.acquire()
|
||||
|
||||
Reference in New Issue
Block a user