Skip to content

Commit 0452346

Browse files
committed
more test fixes
1 parent fc73ba1 commit 0452346

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

tests/test_aiohttp_websocket_exceptions.py

-5
Original file line numberDiff line numberDiff line change
@@ -310,11 +310,6 @@ async def test_aiohttp_websocket_server_closing_after_ack(
310310

311311
query = gql("query { hello }")
312312

313-
with pytest.raises(ConnectionResetError):
314-
await session.execute(query)
315-
316-
await session.transport.wait_closed()
317-
318313
with pytest.raises(TransportClosed):
319314
await session.execute(query)
320315

tests/test_aiohttp_websocket_query.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ async def test_aiohttp_websocket_server_closing_after_first_query(
245245

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

251251

0 commit comments

Comments
 (0)