diff --git a/idea/performanceTests/test/org/jetbrains/kotlin/idea/perf/util/logging.kt b/idea/performanceTests/test/org/jetbrains/kotlin/idea/perf/util/logging.kt index d2405510e65..73140bb5b56 100644 --- a/idea/performanceTests/test/org/jetbrains/kotlin/idea/perf/util/logging.kt +++ b/idea/performanceTests/test/org/jetbrains/kotlin/idea/perf/util/logging.kt @@ -47,8 +47,8 @@ object TeamCity { try { block() } finally { + statValue(name, durationMs ?: -1) if (errorDetails != null) { - statValue(name, -1) testFailed(name, errorDetails) } else { testFinished(name, durationMs)