Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

test(web): drop commented-out null redis rate limit test (#19651)

Nikita Kabardin2efefc2c64ff
diff --git a/web/src/__tests__/server/rate-limit.servertest.ts b/web/src/__tests__/server/rate-limit.servertest.ts
index a668dd79f2..0bf64f1cc7 100644
--- a/web/src/__tests__/server/rate-limit.servertest.ts
+++ b/web/src/__tests__/server/rate-limit.servertest.ts
@@ -320,26 +320,6 @@ describe("RateLimitService", () => {
expect(result?.res).toBeUndefined();
});
- // Not applicable now that the RateLimitService instantiates its own Redis
- // it("should not apply rate limits when redis is not defined", async () => {
- // const scope = {
- // orgId: orgId,
- // plan: "cloud:hobby" as const,
- // projectId,
- // accessLevel: "project" as const,
- // rateLimitOverrides: [
- // { resource: "public-api" as const, points: 5, durationInSec: 10 },
- // ],
- // };
- //
- // const rateLimitService = new RateLimitService(null);
- //
- // const result = await rateLimitService.rateLimitRequest(asScope(scope), "public-api");
- //
- // expect(result?.res).toBeUndefined();
- // expect(result?.isRateLimited()).toBe(false);
- // });
-
it("should not apply rate limits for OSS plan", async () => {
const scope = {
orgId: orgId,