Skip to content

Commit 2093d3a

Browse files
committed
[chores] Increase SQLite busy-timeout to reduce transient lock errors in CI
Bumps the SQLite connection timeout from 10 s to 20 s so that TransactionTestCase teardown/flush operations that briefly hold the write lock on slow CI runners no longer cause spurious "database is locked" errors.
1 parent 3396d94 commit 2093d3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/openwisp2/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"default": {
1515
"ENGINE": "openwisp_utils.db.backends.spatialite",
1616
"NAME": os.path.join(BASE_DIR, "openwisp-controller.db"),
17-
"OPTIONS": {"timeout": 10},
17+
"OPTIONS": {"timeout": 20},
1818
}
1919
}
2020
if TESTING and "--exclude-tag=selenium_tests" not in sys.argv:

0 commit comments

Comments
 (0)