Skip to content

Commit 109fe2e

Browse files
committed
🧪 modify test_user_management_service.py
1 parent 88020eb commit 109fe2e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

‎backend/services/user_management_service.py‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,8 @@ async def check_auth_service_health():
9797
raise ConnectionError("Auth service is unavailable")
9898

9999
data = await response.json()
100-
# Check if the service is available by checking if the response contains the name field and its value is "GoTrue"
101-
is_available = data and data.get("name") == "GoTrue"
102-
103-
if not is_available:
100+
# Check if the service is available by verifying the name field equals "GoTrue"
101+
if not data or data.get("name") != "GoTrue":
104102
logging.error("Auth service is unavailable")
105103
raise ConnectionError("Auth service is unavailable")
106104

0 commit comments

Comments
 (0)