Skip to content

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

chore(ci): fix batchExport to have distinct timestamps (#18651)

Nimar348afaf0b442
diff --git a/worker/src/__tests__/batchExport.test.ts b/worker/src/__tests__/batchExport.test.ts
index 0ecd2c1cee..5813165a15 100644
--- a/worker/src/__tests__/batchExport.test.ts
+++ b/worker/src/__tests__/batchExport.test.ts
@@ -1026,7 +1026,7 @@ describe("batch export test suite", () => {
await createObservationsCh(observations);
- // Create scores with different names and values
+ // Distinct timestamps keep the expected order independent of random score IDs.
const scores = [
createTraceScore({
project_id: projectId,
@@ -1042,7 +1042,7 @@ describe("batch export test suite", () => {
observation_id: observations[0].id,
name: "relevance",
value: 0.75,
- timestamp: new Date("2024-01-01").getTime(),
+ timestamp: new Date("2024-01-01T01:00:00Z").getTime(),
}),
createTraceScore({
project_id: projectId,