IJPL-171426 Wait for backend side after frontend

GitOrigin-RevId: 1f4064440acd51fd1d738fdb7fde54eb4de1e508
This commit is contained in:
Alexey
2026-02-13 12:09:28 +00:00
committed by intellij-monorepo-bot
parent 6a0e9089b4
commit 8d442c78c9
@@ -37,8 +37,8 @@ class HighlightingTestUtil {
}
@JvmStatic
suspend fun waitForAnalysisWithNewApproach(project: Project, span: Span?, timeout: Long?, suppressErrors: Boolean?) {
val timeoutDuration = if (timeout == 0L || timeout == null) 5.minutes else timeout.seconds
suspend fun waitForAnalysisWithNewApproach(project: Project, span: Span?, timeoutSeconds: Long?, suppressErrors: Boolean?) {
val timeoutDuration = if (timeoutSeconds == 0L || timeoutSeconds == null) 5.minutes else timeoutSeconds.seconds
try {
project.service<CodeAnalysisStateListener>().waitAnalysisToFinish(timeoutDuration, !(suppressErrors ?: true))
}