IJPL-578 enable indexing in the background in tests and headless environments

GitOrigin-RevId: 05618428565c967b107c82cc5250f83a809d82cd
This commit is contained in:
Andrei.Kuznetsov
2024-03-22 15:06:29 +01:00
committed by intellij-monorepo-bot
parent ecb3b421de
commit 3582fa2c1b

View File

@@ -722,9 +722,12 @@ open class DumbServiceImpl @NonInjectable @VisibleForTesting constructor(private
}
}
// TODO IJPL-578 - behavior should be the same in tests and prod. Temporary flag to ease tests migration.
private val IS_UNDER_TEAMCITY: Boolean = System.getenv("TEAMCITY_VERSION") != null
val useSynchronousTaskQueue: Boolean
@VisibleForTesting
get() = isSynchronousTaskExecution
get() = SystemProperties.getBooleanProperty("unittest.synchronous.dumb.queue", IS_UNDER_TEAMCITY && isSynchronousTaskExecution)
@JvmStatic
val isSynchronousTaskExecution: Boolean