Skip to content

Commit

Permalink
increase sqlite timeout in test settings to have less "sqlite3.Operat…
Browse files Browse the repository at this point in the history
…ionalError: database table is locked"
  • Loading branch information
Badatos committed Dec 9, 2024
1 parent 50c5437 commit 7343fa0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pod/main/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
}
}
Expand Down

0 comments on commit 7343fa0

Please sign in to comment.