Skip to content
This repository was archived by the owner on Aug 19, 2025. It is now read-only.

Commit 4cc05b9

Browse files
committed
🪲 Fix specific asynpg oriented test
* The connections were hanging sometimes during the tests.
1 parent 6e98885 commit 4cc05b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎tests/test_databases.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,13 +498,15 @@ def insert_independently():
498498

499499
query = notes.insert().values(text="example1", completed=True)
500500
conn.execute(query)
501+
conn.close()
501502

502503
def delete_independently():
503504
engine = sqlalchemy.create_engine(str(database_url))
504505
conn = engine.connect()
505506

506507
query = notes.delete()
507508
conn.execute(query)
509+
conn.close()
508510

509511
async with Database(database_url) as database:
510512
async with database.transaction(force_rollback=True, isolation="serializable"):

0 commit comments

Comments
 (0)