Skip to content

Commit

Permalink
review fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasgribanov committed Apr 12, 2022
1 parent ea8967c commit 0f7d1be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def test_404(self):
},
)

def test_403(self):
def test_http_error(self):
response = self.fetch("/raise_403")
self.assertEqual(response.code, 403)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def get(self):
self.set_status(200)


class Raise403Handler(tornado.web.RequestHandler):
class RaiseHTTPErrorHandler(tornado.web.RequestHandler):
def get(self):
raise tornado.web.HTTPError(403)

Expand All @@ -121,7 +121,7 @@ def make_app(tracer):
(r"/healthz", HealthCheckHandler),
(r"/ping", HealthCheckHandler),
(r"/test_custom_response_headers", CustomResponseHeaderHandler),
(r"/raise_403", Raise403Handler),
(r"/raise_403", RaiseHTTPErrorHandler),
]
)
app.tracer = tracer
Expand Down

0 comments on commit 0f7d1be

Please sign in to comment.