Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
ARIA-213 sporadic tests failures over locked database issue
Increased the timeout for acquiring database lock (for sqlite based db).
  • Loading branch information
mxmrlv committed Jun 7, 2017
1 parent 180e0a1 commit cd830731bff21e836b5e661623b269aa40f92f52
Showing 1 changed file with 2 additions and 1 deletion.
@@ -405,7 +405,8 @@ def init_storage(base_dir, filename='db.sqlite'):

path=os.path.join(base_dir, filename))

engine = create_engine(uri)
engine = create_engine(uri, connect_args=dict(timeout=15))

session_factory = orm.sessionmaker(bind=engine)
session = orm.scoped_session(session_factory=session_factory)

0 comments on commit cd83073

Please sign in to comment.