Fix bug where ws exceptions not being logged (#2213)
* Fix bug where ws exceptions not being logged * Fix t\est
This commit is contained in:
@@ -360,6 +360,7 @@ async def test_request_handle_exception(app):
|
||||
_, response = await app.asgi_client.get("/error-prone")
|
||||
assert response.status_code == 503
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_request_exception_suppressed_by_middleware(app):
|
||||
@app.get("/error-prone")
|
||||
@@ -374,4 +375,4 @@ async def test_request_exception_suppressed_by_middleware(app):
|
||||
assert response.status_code == 403
|
||||
|
||||
_, response = await app.asgi_client.get("/error-prone")
|
||||
assert response.status_code == 403
|
||||
assert response.status_code == 403
|
||||
|
||||
Reference in New Issue
Block a user