Skip to content

Commit

Permalink
more test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mpegman-scwx committed Jun 10, 2024
1 parent fc73ba1 commit 0452346
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions tests/test_aiohttp_websocket_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,11 +310,6 @@ async def test_aiohttp_websocket_server_closing_after_ack(

query = gql("query { hello }")

with pytest.raises(ConnectionResetError):
await session.execute(query)

await session.transport.wait_closed()

with pytest.raises(TransportClosed):
await session.execute(query)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_aiohttp_websocket_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ async def test_aiohttp_websocket_server_closing_after_first_query(

# Now the server is closed but we don't know it yet, we have to send a query
# to notice it and to receive the exception
with pytest.raises(ConnectionResetError):
with pytest.raises(TransportClosed):
await session.execute(query)


Expand Down

0 comments on commit 0452346

Please sign in to comment.