Revert "fix: Revert changes made to sql alchemy adapter for lib test"
This reverts commit ef5965224a.
This commit is contained in:
parent
ef5965224a
commit
f81aeff009
1 changed files with 4 additions and 1 deletions
|
|
@ -507,7 +507,10 @@ class SQLAlchemyAdapter:
|
||||||
if self.engine.dialect.name == "sqlite":
|
if self.engine.dialect.name == "sqlite":
|
||||||
await self.engine.dispose(close=True)
|
await self.engine.dispose(close=True)
|
||||||
# Wait for the database connections to close and release the file (Windows)
|
# Wait for the database connections to close and release the file (Windows)
|
||||||
await asyncio.sleep(2)
|
import gc
|
||||||
|
|
||||||
|
gc.collect()
|
||||||
|
# await asyncio.sleep(2)
|
||||||
db_directory = path.dirname(self.db_path)
|
db_directory = path.dirname(self.db_path)
|
||||||
file_name = path.basename(self.db_path)
|
file_name = path.basename(self.db_path)
|
||||||
file_storage = get_file_storage(db_directory)
|
file_storage = get_file_storage(db_directory)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue