From 69394a906ea71e74670829872a4aa482cc2b7543 Mon Sep 17 00:00:00 2001 From: diegosouzapw Date: Thu, 28 May 2026 01:49:49 -0300 Subject: [PATCH] =?UTF-8?q?fix(batch):=20F10=20audit=20=E2=80=94=20increas?= =?UTF-8?q?e=20flaky=20perf=20test=20threshold=20from=20100ms=20to=20500ms?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/unit/lib/batches/costEstimator.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/lib/batches/costEstimator.test.ts b/tests/unit/lib/batches/costEstimator.test.ts index c6522812fd..f065c4564e 100644 --- a/tests/unit/lib/batches/costEstimator.test.ts +++ b/tests/unit/lib/batches/costEstimator.test.ts @@ -135,13 +135,13 @@ test("estimateBatchCost: Anthropic shape (params) → parses params instead of b // ── Performance ──────────────────────────────────────────────────────────────── -test("estimateBatchCost: 1000 lines processed in < 100ms", () => { +test("estimateBatchCost: 1000 lines processed in < 500ms", () => { const lines = Array.from({ length: 1000 }, (_, i) => makeLine(`req-${i}`, "gpt-4o", 256)); const jsonl = makeJsonl(lines); const start = Date.now(); const result = estimateBatchCost({ jsonl, model: "gpt-4o", endpoint: ENDPOINT }); const elapsed = Date.now() - start; - assert.ok(elapsed < 100, `should complete in < 100ms, took ${elapsed}ms`); + assert.ok(elapsed < 500, `should complete in < 500ms, took ${elapsed}ms`); assert.equal(result.totalRequests, 1000); });