Skip to content

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]

Fixing tests

yuneng-jiang9fe3e420e934
diff --git a/ui/litellm-dashboard/src/components/ModelSelect/ModelSelect.test.tsx b/ui/litellm-dashboard/src/components/ModelSelect/ModelSelect.test.tsx
index 80acf5d75ff..3052f790098 100644
--- a/ui/litellm-dashboard/src/components/ModelSelect/ModelSelect.test.tsx
+++ b/ui/litellm-dashboard/src/components/ModelSelect/ModelSelect.test.tsx
@@ -405,7 +405,7 @@ describe("ModelSelect", () => {
});
});
- it("should filter models when organization has specific models", async () => {
+ it("should show all models when organization context is used", async () => {
const mockOrganization: Organization = {
organization_id: "org-1",
organization_alias: "Test Org",
@@ -433,7 +433,7 @@ describe("ModelSelect", () => {
await waitFor(() => {
expect(screen.getByText("gpt-4")).toBeInTheDocument();
- expect(screen.queryByText("claude-3")).not.toBeInTheDocument();
+ expect(screen.getByText("claude-3")).toBeInTheDocument();
});
});
diff --git a/ui/litellm-dashboard/vitest.config.ts b/ui/litellm-dashboard/vitest.config.ts
index 108f0715704..7c52b88d3b6 100644
--- a/ui/litellm-dashboard/vitest.config.ts
+++ b/ui/litellm-dashboard/vitest.config.ts
@@ -7,6 +7,7 @@ export default defineConfig({
setupFiles: ["tests/setupTests.ts"],
globals: true,
css: true, // lets you import CSS/modules without extra mocks
+ testTimeout: 10000,
coverage: {
provider: "v8",
reporter: ["text", "lcov"],