diff --git a/test_runner/src/main/kotlin/ftl/reports/api/CreateTestSuitOverviewData.kt b/test_runner/src/main/kotlin/ftl/reports/api/CreateTestSuitOverviewData.kt index f708884b62..63f19398af 100644 --- a/test_runner/src/main/kotlin/ftl/reports/api/CreateTestSuitOverviewData.kt +++ b/test_runner/src/main/kotlin/ftl/reports/api/CreateTestSuitOverviewData.kt @@ -30,6 +30,4 @@ private fun getOverheadTime( 0.0 else (overview.elapsedTime.millis() - testCases.sumTime()) / testCases.size -private fun List.sumTime(): Double = this - .map { it.elapsedTime.millis() } - .reduce { acc, d -> acc + d } +private fun List.sumTime(): Double = sumByDouble { it.elapsedTime.millis() }