From 7d1b435e921a2e02f4e667310fd5bbec7d598a4d Mon Sep 17 00:00:00 2001 From: Julia Beliaeva Date: Thu, 27 Jul 2023 17:08:50 +0200 Subject: [PATCH] [performance-tests] start waiting for indexing only is it was scheduled GitOrigin-RevId: 1227ed98a20bfe81920df66286bc4f317f0ec8aa --- .../performancePlugin/commands/WaitVcsLogIndexingCommand.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/performanceTesting/src/com/jetbrains/performancePlugin/commands/WaitVcsLogIndexingCommand.kt b/plugins/performanceTesting/src/com/jetbrains/performancePlugin/commands/WaitVcsLogIndexingCommand.kt index cd9f1a3f3a88..92b3d5886f7b 100644 --- a/plugins/performanceTesting/src/com/jetbrains/performancePlugin/commands/WaitVcsLogIndexingCommand.kt +++ b/plugins/performanceTesting/src/com/jetbrains/performancePlugin/commands/WaitVcsLogIndexingCommand.kt @@ -45,7 +45,7 @@ class WaitVcsLogIndexingCommand(text: String, line: Int) : PerformanceCommandCor LOG.info("Need indexing = ${vcsIndex.needIndexing()}, " + "is indexing scheduled = ${vcsIndex.isIndexingScheduled()}, " + "is indexing paused = ${vcsIndex.isIndexingPaused()}") - if (vcsIndex.needIndexing()) { + if (vcsIndex.isIndexingScheduled()) { val isIndexingCompleted = CompletableDeferred() vcsIndex.addListener { _ -> LOG.info("$NAME command was completed due to indexing was finished after listener invocation")