Skip to content

Commit

Permalink
fix tests on Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
leszekhanusz committed Oct 21, 2023
1 parent cd57ef0 commit 1bf3bcc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_appsync_websockets.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,10 @@ async def receiving_coro():
print(f"\n Server: Exception received: {e!s}\n")
finally:
print(" Server: waiting for websocket connection to close")
await ws.close()
try:
await asyncio.wait_for(ws.wait_closed(), 1000 * MS)
except TimeoutError:
pass
print(" Server: connection closed")

return realtime_appsync_server_template
Expand Down

0 comments on commit 1bf3bcc

Please sign in to comment.