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")