Skip to content

Commit 2434c34

Browse files
committed
fix flaked in x of x runs stat
1 parent ee5184d commit 2434c34

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

routes/insights.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ export class InsightsPageController {
9393
if (existing) {
9494
existing.totalFlakyCounts += test.flakyCount;
9595
existing.occurrences++;
96-
existing.runIds.push(runId);
96+
if (!existing.runIds.includes(runId)) {
97+
existing.runIds.push(runId);
98+
}
9799
existing.avgFlakyCount = existing.totalFlakyCounts /
98100
existing.occurrences;
99101
existing.jobCounts.set(
@@ -307,7 +309,7 @@ export default define.page<typeof handler>(function InsightsPage({ data }) {
307309
<span>
308310
Flaked in{" "}
309311
<span class="font-semibold">
310-
{test.occurrences}
312+
{test.runIds.length}
311313
</span>{" "}
312314
of {totalRunsAnalyzed} runs
313315
</span>

0 commit comments

Comments
 (0)