Skip to content

Commit

Permalink
Try to fix ConnectionResetError exception
Browse files Browse the repository at this point in the history
  • Loading branch information
leszekhanusz committed Jul 16, 2024
1 parent cfee44c commit d43224f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,9 @@ async def default_server_handler(request):
# Wait for connection close
msg = await anext(ws)

except ConnectionResetError:
pass

except Exception as e:
print(f"Server exception {e!s}", file=sys.stderr)

Expand Down

0 comments on commit d43224f

Please sign in to comment.