Skip to content

Commit

Permalink
tests: Close eventloop in separate threads
Browse files Browse the repository at this point in the history
  • Loading branch information
gleero committed Apr 19, 2023
1 parent ff6a24a commit 795525a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ async def async_wait(ev: Event):
loop = asyncio.new_event_loop()
loop.run_until_complete(async_wait(e))
assert e.is_set() is True
loop.close()

mgm_event = threading.Event()
event = Event()
Expand All @@ -167,6 +168,7 @@ async def async_wait(ev: Event):
me.wait()
loop.run_until_complete(async_wait(e))
assert e.is_set() is True
loop.close()

mgm_event = threading.Event()
event = Event()
Expand Down

0 comments on commit 795525a

Please sign in to comment.