File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
tests/proxy_admin_ui_tests Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1029,7 +1029,9 @@ async def test_list_key_helper_team_filtering(prisma_client):
1029
1029
# Test 1: Get all keys with pagination (exclude litellm-dashboard)
1030
1030
all_keys = []
1031
1031
page = 1
1032
- while True :
1032
+ max_pages_to_check = 3 # Only check the first 3 pages
1033
+
1034
+ while page <= max_pages_to_check :
1033
1035
result = await _list_key_helper (
1034
1036
prisma_client = prisma_client ,
1035
1037
size = 100 ,
@@ -1043,7 +1045,7 @@ async def test_list_key_helper_team_filtering(prisma_client):
1043
1045
1044
1046
all_keys .extend (result ["keys" ])
1045
1047
1046
- if page >= result ["total_pages" ]:
1048
+ if page >= result ["total_pages" ] or page >= max_pages_to_check :
1047
1049
break
1048
1050
page += 1
1049
1051
You can’t perform that action at this time.
0 commit comments