From 8d346c982b9e90f135062a4e8911eab6decc7083 Mon Sep 17 00:00:00 2001 From: Mike Donnalley Date: Mon, 2 Dec 2024 12:47:09 -0700 Subject: [PATCH] chore: clean up --- src/agentTester.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/agentTester.ts b/src/agentTester.ts index c1f1a94..20799f8 100644 --- a/src/agentTester.ts +++ b/src/agentTester.ts @@ -104,6 +104,8 @@ export class AgentTester { const lifecycle = Lifecycle.getInstance(); const client = await PollingClient.create({ poll: async (): Promise => { + // 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;