Skip to content

Commit

Permalink
updated test server to return 500 response on GET /exception
Browse files Browse the repository at this point in the history
  • Loading branch information
fullerzz committed Mar 2, 2024
1 parent 14cdee4 commit db2213a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/bin/test_server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ async def post_foo(request: Request) -> Response:


@get("/exception")
async def mock_exception():
raise Exception("Mock exception")
async def mock_exception() -> Response:
return Response(500, content=b"Internal Server Error")

0 comments on commit db2213a

Please sign in to comment.