mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 15:06:56 +07:00
IJPL-578 enable indexing in the background in tests and headless environments
GitOrigin-RevId: 05618428565c967b107c82cc5250f83a809d82cd
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ecb3b421de
commit
3582fa2c1b
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user