From c5db361c6eff980782f8a56a417ebf23e2342504 Mon Sep 17 00:00:00 2001 From: Danil Tereshchenko Date: Thu, 12 Feb 2026 14:16:23 +0400 Subject: [PATCH] tests [performanceTesting]: skip redundant delay after last retry, clarify span event wording GitOrigin-RevId: 4be6de0c7759bf020f2695af2bd3252d0bd41411 --- .../jetbrains/performancePlugin/commands/DelayTypeCommand.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/performanceTesting/core/src/com/jetbrains/performancePlugin/commands/DelayTypeCommand.kt b/plugins/performanceTesting/core/src/com/jetbrains/performancePlugin/commands/DelayTypeCommand.kt index 91b2f8cfa5dc..169aa95bbe05 100644 --- a/plugins/performanceTesting/core/src/com/jetbrains/performancePlugin/commands/DelayTypeCommand.kt +++ b/plugins/performanceTesting/core/src/com/jetbrains/performancePlugin/commands/DelayTypeCommand.kt @@ -109,8 +109,8 @@ class DelayTypeCommand(text: String, line: Int) : PlaybackCommandCoroutineAdapte true } if (typed) break - span.addEvent("Focus lost while typing char $i, retry attempt $attempt") - delay(500) + span.addEvent("Focus lost while typing char $i, attempt $attempt of 3 failed") + if (attempt < 3) delay(500) } if (!typed) { val ex = Exception("Focus was lost during typing. Current focus is in: " +