Skip to content

Commit

Permalink
🎨 Fix pytest-asyncio warning: unclosed event loop
Browse files Browse the repository at this point in the history
Signed-off-by: ff137 <[email protected]>
  • Loading branch information
ff137 committed Jan 23, 2025
1 parent 05f35c9 commit 6497d69
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions acapy_agent/messaging/jsonld/tests/test_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,10 @@ async def asyncSetUp(self):
headers={"x-api-key": "secret-key"},
)

async def asyncTearDown(self):
# Ensure the event loop is closed
await self.profile.close()

async def test_verify_credential(self):
POSTED_REQUEST = { # posted json
"verkey": (
Expand Down

0 comments on commit 6497d69

Please sign in to comment.