From 7343fa068918f0d9e26fd444ad814baf64075ad8 Mon Sep 17 00:00:00 2001 From: Olivier Bado-Faustin <12731381+Badatos@users.noreply.github.com> Date: Mon, 9 Dec 2024 14:18:30 +0100 Subject: [PATCH] increase sqlite timeout in test settings to have less "sqlite3.OperationalError: database table is locked" --- pod/main/test_settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pod/main/test_settings.py b/pod/main/test_settings.py index 0648c8e188..4b02437752 100644 --- a/pod/main/test_settings.py +++ b/pod/main/test_settings.py @@ -46,7 +46,8 @@ "ENGINE": "django.db.backends.sqlite3", "NAME": "db-test.sqlite", "OPTIONS": { - "timeout": 20, + "timeout": 30.0, # in seconds + # see also https://docs.python.org/3.10/library/sqlite3.html#sqlite3.connect }, } }