Skip to content

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

fix(tests): align eval rule limit tests with 500 cap (#15108)

Lysander Kieseld307b3279c35
diff --git a/web/src/__tests__/server/unit/unstable-evals-service.servertest.ts b/web/src/__tests__/server/unit/unstable-evals-service.servertest.ts
index f0c59c4a80..614d22cca2 100644
--- a/web/src/__tests__/server/unit/unstable-evals-service.servertest.ts
+++ b/web/src/__tests__/server/unit/unstable-evals-service.servertest.ts
@@ -972,8 +972,8 @@ describe("unstable public eval services", () => {
expect(mockedPrisma.jobConfiguration.create).not.toHaveBeenCalled();
});
- it("rejects creating more than 50 active evaluation rules", async () => {
- mockCountActiveEvaluationRules.mockResolvedValueOnce(50);
+ it("rejects creating more than 500 active evaluation rules", async () => {
+ mockCountActiveEvaluationRules.mockResolvedValueOnce(500);
await expect(
createPublicEvaluationRule({
@@ -994,7 +994,7 @@ describe("unstable public eval services", () => {
},
}),
).rejects.toThrow(
- "This project already has the maximum number of active evaluation rules (50).",
+ "This project already has the maximum number of active evaluation rules (500).",
);
expect(mockLoadEvaluatorForEvaluationRule).not.toHaveBeenCalled();
@@ -1382,7 +1382,7 @@ describe("unstable public eval services", () => {
status: JobConfigState.INACTIVE,
}),
);
- mockCountActiveEvaluationRules.mockResolvedValueOnce(50);
+ mockCountActiveEvaluationRules.mockResolvedValueOnce(500);
await expect(
updatePublicEvaluationRule({
@@ -1394,7 +1394,7 @@ describe("unstable public eval services", () => {
},
}),
).rejects.toThrow(
- "This project already has the maximum number of active evaluation rules (50).",
+ "This project already has the maximum number of active evaluation rules (500).",
);
expect(mockLoadEvaluatorForEvaluationRule).not.toHaveBeenCalled();