We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee5184d commit 2434c34Copy full SHA for 2434c34
routes/insights.tsx
@@ -93,7 +93,9 @@ export class InsightsPageController {
93
if (existing) {
94
existing.totalFlakyCounts += test.flakyCount;
95
existing.occurrences++;
96
- existing.runIds.push(runId);
+ if (!existing.runIds.includes(runId)) {
97
+ existing.runIds.push(runId);
98
+ }
99
existing.avgFlakyCount = existing.totalFlakyCounts /
100
existing.occurrences;
101
existing.jobCounts.set(
@@ -307,7 +309,7 @@ export default define.page<typeof handler>(function InsightsPage({ data }) {
307
309
<span>
308
310
Flaked in{" "}
311
<span class="font-semibold">
- {test.occurrences}
312
+ {test.runIds.length}
313
</span>{" "}
314
of {totalRunsAnalyzed} runs
315
</span>
0 commit comments