Skip to content

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

fix: make test data not error UI (#8564)

Nimar698331a99d3b
diff --git a/web/src/__tests__/async/ingestion-api.servertest.ts b/web/src/__tests__/async/ingestion-api.servertest.ts
index 9081d19e07..78dda060d9 100644
--- a/web/src/__tests__/async/ingestion-api.servertest.ts
+++ b/web/src/__tests__/async/ingestion-api.servertest.ts
@@ -365,7 +365,18 @@ describe("/api/public/ingestion API Endpoint", () => {
"should create observations via the ingestion API (%s)",
async (_name: string, type: string, entity: any) => {
const response = await makeAPICall("POST", "/api/public/ingestion", {
- batch: [entity],
+ batch: [
+ {
+ id: randomUUID(),
+ type: "trace-create",
+ timestamp: new Date().toISOString(),
+ body: {
+ id: entity.traceId,
+ timestamp: new Date().toISOString(),
+ },
+ },
+ entity,
+ ],
});
expect(response.status).toBe(207);