From dcdd69d039bc3acf824eb075cd5bcf11cbdb146f Mon Sep 17 00:00:00 2001 From: Ilya Kirillov Date: Mon, 19 Oct 2020 13:24:58 +0300 Subject: [PATCH] Invalidate caches before resolve in AbstractPerformanceHighlightingTest --- .../kotlin/idea/perf/AbstractPerformanceHighlightingTest.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/idea/performanceTests/test/org/jetbrains/kotlin/idea/perf/AbstractPerformanceHighlightingTest.kt b/idea/performanceTests/test/org/jetbrains/kotlin/idea/perf/AbstractPerformanceHighlightingTest.kt index 11c297ccb0b..8fc826e1da9 100644 --- a/idea/performanceTests/test/org/jetbrains/kotlin/idea/perf/AbstractPerformanceHighlightingTest.kt +++ b/idea/performanceTests/test/org/jetbrains/kotlin/idea/perf/AbstractPerformanceHighlightingTest.kt @@ -7,6 +7,7 @@ package org.jetbrains.kotlin.idea.perf import com.intellij.codeInsight.daemon.impl.HighlightInfo import com.intellij.openapi.application.runWriteAction +import com.intellij.openapi.roots.ProjectRootManager import com.intellij.testFramework.RunAll import com.intellij.testFramework.fixtures.impl.CodeInsightTestFixtureImpl.ensureIndexesUpToDate import com.intellij.util.ThrowableRunnable @@ -80,6 +81,7 @@ abstract class AbstractPerformanceHighlightingTest : KotlinLightCodeInsightFixtu // to load AST for changed files before it's prohibited by "fileTreeAccessFilter" ensureIndexesUpToDate(project) + ProjectRootManager.getInstance(project).incModificationCount() } }