The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
Adding timeout it instead
yuneng-jiangcfdade1a6f38
diff --git a/ui/litellm-dashboard/src/components/team/team_info.test.tsx b/ui/litellm-dashboard/src/components/team/team_info.test.tsxindex 8ea1a1571a5..54362193350 100644--- a/ui/litellm-dashboard/src/components/team/team_info.test.tsx+++ b/ui/litellm-dashboard/src/components/team/team_info.test.tsx@@ -137,41 +137,30 @@ describe("TeamInfoView", () => {/>,);- await waitFor(- () => {- expect(screen.getAllByText("Test Team")).not.toBeNull();- },- // This is a workaround to fix the flaky test issue. TODO: Remove this once we have a better solution.- { timeout: 10000 },- );+ await waitFor(() => {+ expect(screen.getAllByText("Test Team")).not.toBeNull();+ });const settingsTab = screen.getByRole("tab", { name: "Settings" });act(() => {fireEvent.click(settingsTab);});- await waitFor(- () => {- expect(screen.getByText("Team Settings")).toBeInTheDocument();- },- // This is a workaround to fix the flaky test issue. TODO: Remove this once we have a better solution.- { timeout: 10000 },- );+ await waitFor(() => {+ expect(screen.getByText("Team Settings")).toBeInTheDocument();+ });const editButton = screen.getByRole("button", { name: "Edit Settings" });act(() => {fireEvent.click(editButton);});- await waitFor(- () => {- expect(screen.getByLabelText("Models")).toBeInTheDocument();- },- // This is a workaround to fix the flaky test issue. TODO: Remove this once we have a better solution.- { timeout: 10000 },- );+ await waitFor(() => {+ expect(screen.getByLabelText("Models")).toBeInTheDocument();+ });const allProxyModelsOption = screen.queryByText("All Proxy Models");expect(allProxyModelsOption).not.toBeInTheDocument();- });+ }, // This is a workaround to fix the flaky test issue. TODO: Remove this once we have a better solution.+ 10000);});