From 74ce78ddfe1542b470bade83c75828a70efdf4d4 Mon Sep 17 00:00:00 2001 From: Andrej Milicevic Date: Mon, 13 Oct 2025 12:52:05 +0200 Subject: [PATCH] fix: Revert changes to sql alchemy for lib test --- .../databases/relational/sqlalchemy/SqlAlchemyAdapter.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cognee/infrastructure/databases/relational/sqlalchemy/SqlAlchemyAdapter.py b/cognee/infrastructure/databases/relational/sqlalchemy/SqlAlchemyAdapter.py index 93252ab6e..380ce9917 100644 --- a/cognee/infrastructure/databases/relational/sqlalchemy/SqlAlchemyAdapter.py +++ b/cognee/infrastructure/databases/relational/sqlalchemy/SqlAlchemyAdapter.py @@ -507,10 +507,7 @@ class SQLAlchemyAdapter: if self.engine.dialect.name == "sqlite": await self.engine.dispose(close=True) # Wait for the database connections to close and release the file (Windows) - import gc - - gc.collect() - # await asyncio.sleep(2) + await asyncio.sleep(2) db_directory = path.dirname(self.db_path) file_name = path.basename(self.db_path) file_storage = get_file_storage(db_directory)