Skip to content

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

test(worker): drop commented-out redis job failing test (#19628)

Nikita Kabardin53a58a7428c9
diff --git a/worker/src/__tests__/redisConsumer.test.ts b/worker/src/__tests__/redisConsumer.test.ts
index 4f1f747bc5..0fa58aa26f 100644
--- a/worker/src/__tests__/redisConsumer.test.ts
+++ b/worker/src/__tests__/redisConsumer.test.ts
@@ -119,53 +119,4 @@ describe.sequential("handle redis events", () => {
const jobState = await traceUpsertQueue?.getJobState(job!.id!);
expect(jobState).toEqual("waiting");
}, 5000);
-
- // test("handle redis job failing", async () => {
- // vi.mock("../eval-service", () => ({
- // createEvalJobs: async ({
- // data,
- // }: {
- // data: z.infer<typeof TraceUpsertEvent>;
- // }) => {
- // logger.error("Failed to create eval jobs");
- // throw new Error("Failed to create eval jobs");
- // },
- // }));
-
- // // this activates the consumer
- // evalJobCreator?.on("completed", (job, err) => {
- // logger.info(`Eval Job with id ${job?.id} completed`);
- // });
-
- // expect(evalQueue).toBeDefined();
-
- // const job = await evalQueue?.add(
- // QueueJobs.TraceUpsert,
- // {
- // id: randomUUID(),
- // timestamp: new Date(),
- // payload: {
- // projectId: "project-id",
- // traceId: "trace-id",
- // },
- // name: QueueJobs.TraceUpsert as const,
- // },
- // {
- // attempts: 2,
- // }
- // );
-
- // await vi.waitFor(
- // async () => {
- // const jobState = await evalQueue?.getJobState(job!.id!);
- // logger.info(`Job state: ${jobState}`);
- // expect(jobState).toEqual("failed");
- // const j = await evalQueue?.getJob(job!.id!);
- // expect(j?.attemptsMade).toEqual(2);
- // },
- // {
- // timeout: 15_000,
- // }
- // );
- // }, 15_000);
});