Skip to content

Commit

Permalink
Merge pull request #220 from smitp/patch-1
Browse files Browse the repository at this point in the history
fix: Increase sqlite connect timeout to 60s ( closes #203 )
  • Loading branch information
tarpas authored Jul 12, 2023
2 parents a4b1347 + a676815 commit 043096e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testmon/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class TestmonDbException(Exception):

def connect(datafile, readonly=False):
connection = sqlite3.connect(
f"file:{datafile}{'?mode=ro' if readonly else ''}", uri=True
f"file:{datafile}{'?mode=ro' if readonly else ''}", uri=True, timeout=60
)

connection.execute("PRAGMA journal_mode = WAL")
Expand Down

0 comments on commit 043096e

Please sign in to comment.