Skip to content

Commit

Permalink
chore: clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Dec 2, 2024
1 parent 0ca243e commit 8d346c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/agentTester.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ export class AgentTester {
const lifecycle = Lifecycle.getInstance();
const client = await PollingClient.create({
poll: async (): Promise<StatusResult> => {
// NOTE: we don't actually need to call the status API here since all the same information is present on the
// details API. We could just call the details API and check the status there.
const [detailsResponse, statusResponse] = await Promise.all([this.details(jobId, format), this.status(jobId)]);
const totalTestCases = detailsResponse.response.testCases.length;
const failingTestCases = detailsResponse.response.testCases.filter((tc) => tc.status === 'ERROR').length;
Expand Down

0 comments on commit 8d346c9

Please sign in to comment.