Skip to content

Commit

Permalink
fix asyncio warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jpprins1 committed Jan 2, 2024
1 parent 54439e8 commit a22230c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ async def wrapper(
await rpc_client.rpc_commlayer.close()
await rpc_server.rpc_commlayer.close()

# Clean exit
tasks = [t for t in asyncio.all_tasks() if t is not asyncio.current_task()]
if tasks:
await asyncio.gather(*tasks)

return result

return wrapper

0 comments on commit a22230c

Please sign in to comment.