diff --git a/tests/integrations/aiohttp/test_aiohttp.py b/tests/integrations/aiohttp/test_aiohttp.py index f952b82c35..5b25629a83 100644 --- a/tests/integrations/aiohttp/test_aiohttp.py +++ b/tests/integrations/aiohttp/test_aiohttp.py @@ -605,27 +605,6 @@ async def hello(request): assert event["spans"][0]["origin"] == "auto.http.aiohttp" -@pytest.mark.asyncio -@pytest.mark.parametrize("invalid_response", (None, "invalid")) -async def test_invalid_response( - sentry_init, aiohttp_client, capture_events, invalid_response -): - sentry_init(integrations=[AioHttpIntegration()]) - - async def handler(_): - return invalid_response - - app = web.Application() - app.router.add_get("/", handler) - - client = await aiohttp_client(app) - - # Invalid response should result on a ServerDisconnectedError in the client side, not an internal server error. - # Important to note that the ServerDisconnectedError indicates we have no error server-side. - with pytest.raises(ServerDisconnectedError): - await client.get("/") - - @pytest.mark.parametrize( ("integration_kwargs", "exception_to_raise", "should_capture"), (