Skip to content

Commit 52558f5

Browse files
committed
Python 3.9 compatibility.
1 parent e6d00ad commit 52558f5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/unit_tests/test_axon.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,10 +817,12 @@ async def lifespan(app):
817817

818818
server_started.wait(3.0)
819819

820-
async with asyncio.timeout(3.0):
820+
async def wait_for_server():
821821
while not (server.started or server_stopped.is_set()):
822822
await asyncio.sleep(1.0)
823823

824+
await asyncio.wait_for(wait_for_server(), 7.0)
825+
824826
assert server.is_running is True
825827

826828
async with aiohttp.ClientSession(

0 commit comments

Comments
 (0)