[performance-tests] start waiting for indexing only is it was scheduled

GitOrigin-RevId: 1227ed98a20bfe81920df66286bc4f317f0ec8aa
This commit is contained in:
Julia Beliaeva
2023-07-31 21:46:07 +00:00
committed by intellij-monorepo-bot
parent 72df3f6680
commit 7d1b435e92
@@ -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<Boolean>()
vcsIndex.addListener { _ ->
LOG.info("$NAME command was completed due to indexing was finished after listener invocation")