From ac648af78e7fa1e9bd08fcfb2ee66a32d012275c Mon Sep 17 00:00:00 2001 From: yuneng-jiang Date: Sat, 14 Feb 2026 18:05:27 -0800 Subject: [PATCH] add timeout to long running tests --- ui/litellm-dashboard/src/components/OldTeams.test.tsx | 8 ++++---- .../src/components/organisms/create_key_button.test.tsx | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ui/litellm-dashboard/src/components/OldTeams.test.tsx b/ui/litellm-dashboard/src/components/OldTeams.test.tsx index f0f08e3907..7d64ac9afe 100644 --- a/ui/litellm-dashboard/src/components/OldTeams.test.tsx +++ b/ui/litellm-dashboard/src/components/OldTeams.test.tsx @@ -74,9 +74,9 @@ vi.mock("./ModelSelect/ModelSelect", () => { if (onChange) { const newVal = e.target.value ? e.target.value - .split(",") - .map((s: string) => s.trim()) - .filter(Boolean) + .split(",") + .map((s: string) => s.trim()) + .filter(Boolean) : []; onChange(newVal); } @@ -836,7 +836,7 @@ describe("OldTeams - access_group_ids in team create", () => { }), ); }); - }); + }, { timeout: 30000 }); }); describe("OldTeams - models dropdown options", () => { diff --git a/ui/litellm-dashboard/src/components/organisms/create_key_button.test.tsx b/ui/litellm-dashboard/src/components/organisms/create_key_button.test.tsx index b5198e4f86..d08d0f3af1 100644 --- a/ui/litellm-dashboard/src/components/organisms/create_key_button.test.tsx +++ b/ui/litellm-dashboard/src/components/organisms/create_key_button.test.tsx @@ -118,7 +118,7 @@ describe("CreateKey", () => { expect(formValues).toHaveProperty("access_group_ids"); expect(formValues.access_group_ids).toEqual(["ag-1", "ag-2"]); }, - { timeout: 5000 }, + { timeout: 15000 }, ); - }); + }, { timeout: 30000 }); });