diff --git a/sanic/utils.py b/sanic/utils.py index c7520151..272ec8a8 100644 --- a/sanic/utils.py +++ b/sanic/utils.py @@ -28,7 +28,7 @@ def sanic_endpoint_test(app, method='get', uri='/', gather_request=True, results[0] = request app.request_middleware.appendleft(_collect_request) - @app.listener('after_server_start') # TODO undo this + @app.listener('after_server_start') async def _collect_response(sanic, loop): try: response = await local_request(method, uri, *request_args,