diff --git a/sanic/app.py b/sanic/app.py index 753f477b..04a62642 100644 --- a/sanic/app.py +++ b/sanic/app.py @@ -1048,7 +1048,7 @@ class Sanic: if self._asgi_client: return self._asgi_client elif self._test_manager: - return self._test_manager.test_client + return self._test_manager.asgi_client from sanic_testing.testing import SanicASGITestClient # type: ignore self._asgi_client = SanicASGITestClient(self)