Skip to content

Commit

Permalink
make duration optional
Browse files Browse the repository at this point in the history
  • Loading branch information
adamnolte committed Sep 22, 2024
1 parent 1deab05 commit c18e574
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/testing/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export async function sendTestCaseResult<TestCaseType, OutputType>(args: {
testCase: TestCaseType;
testCaseHash: string;
testCaseOutput: OutputType;
testCaseDurationMs: number;
testCaseDurationMs?: number;
serializeTestCaseForHumanReview?: (
testCase: TestCaseType,
) => HumanReviewField[];
Expand Down
2 changes: 1 addition & 1 deletion src/testing/test-run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 })[];
Expand Down

0 comments on commit c18e574

Please sign in to comment.