Skip to content

Commit

Permalink
ensure the event loop is closed in the test
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Nov 25, 2023
1 parent bcd6257 commit 6020fff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ async def foo():

asyncio.set_event_loop(None)
assert foo_sync() == 1
asyncio.get_event_loop().close()

asyncio.run(foo())
asyncio.get_event_loop().close()


def test_ensure_async():
Expand Down

0 comments on commit 6020fff

Please sign in to comment.