From c18e57476ba2d387138271b69cb637de699d7787 Mon Sep 17 00:00:00 2001 From: Adam Nolte Date: Sat, 21 Sep 2024 21:11:18 -0500 Subject: [PATCH] make duration optional --- src/testing/api.ts | 2 +- src/testing/test-run.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/testing/api.ts b/src/testing/api.ts index a83e4b3..1096ccb 100644 --- a/src/testing/api.ts +++ b/src/testing/api.ts @@ -214,7 +214,7 @@ export async function sendTestCaseResult(args: { testCase: TestCaseType; testCaseHash: string; testCaseOutput: OutputType; - testCaseDurationMs: number; + testCaseDurationMs?: number; serializeTestCaseForHumanReview?: ( testCase: TestCaseType, ) => HumanReviewField[]; diff --git a/src/testing/test-run.ts b/src/testing/test-run.ts index 98b3d8a..d15612b 100644 --- a/src/testing/test-run.ts +++ b/src/testing/test-run.ts @@ -68,7 +68,7 @@ export class TestRun< */ public async addResult(args: { testCase: TestCaseType; - testCaseDurationMs: number; + testCaseDurationMs?: number; output: OutputType; // Automated evaluations for the test case evaluations: (Evaluation & { id: string })[];