ChickenBenny commented on code in PR #77599:
URL: https://github.com/apache/airflow/pull/77599#discussion_r4705540848
##########
providers/fab/src/airflow/providers/fab/auth_manager/fab_auth_manager.py:
##########
@@ -473,7 +472,8 @@ def build_public_user(self, *, session: Session =
NEW_SESSION) -> AnonymousUser
return None
user = AnonymousUser()
- role = session.scalar(select(Role).where(Role.name ==
public_role_name))
+ async with create_session_async() as session:
Review Comment:
Fixed in a94ebb87dd: `run_api_server` now enters the `TestClient` with
`with`, so all requests in a test share one event loop.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]