revert: restore the upstream auth prefetch test

This keeps the PR's diff limited to its own fix. The test's timing
sensitivity belongs to it, not to this change: its org rows are cached
with the 5 second DEFAULT_IN_MEMORY_TTL and it then spends seconds in
real Postgres round-trips, so it can flake on a loaded runner. Verified
against a local postgres:16 (prisma generate + db push, same steps as
CI): 3 passed in 6.53s, with 3.0s in the call phase alone.
This commit is contained in:
lawrence 2026-09-14 11:01:18 +08:00
parent 311a74640d
commit 2f1c690cea

View file

@ -58,7 +58,7 @@ async def test_join_binds_the_membership_to_the_requested_team(prisma):
data={"user_id": user_id, "team_id": team_b, "litellm_budget_table": {"connect": {"budget_id": f"b-{run}"}}}
)
cache = UserApiKeyCache(in_memory_cache=InMemoryCache(clock=lambda: 0.0), redis_cache=None)
cache = UserApiKeyCache(in_memory_cache=InMemoryCache(), redis_cache=None)
refs = AuthObjectRefs(user_id=user_id, team_id=team_a, membership_user_id=user_id, organization_id=org_id)
await prefetch_auth_objects(refs=refs, user_api_key_cache=cache, prisma_client=prisma)