From 96e89c2befd27dcd56ac9b2a92238bb5e2806162 Mon Sep 17 00:00:00 2001 From: "Andrei.Kuznetsov" Date: Thu, 21 Mar 2024 11:58:19 +0100 Subject: [PATCH] IJPL-578 wait for indexes to be ready in tests (InspectionTestUtil.runTool) GitOrigin-RevId: f76f660cfe891e25417f2212a6d1d0659422950b --- .../src/com/intellij/testFramework/InspectionTestUtil.java | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/testFramework/src/com/intellij/testFramework/InspectionTestUtil.java b/platform/testFramework/src/com/intellij/testFramework/InspectionTestUtil.java index 1e78fd558423..7baeab83b12f 100644 --- a/platform/testFramework/src/com/intellij/testFramework/InspectionTestUtil.java +++ b/platform/testFramework/src/com/intellij/testFramework/InspectionTestUtil.java @@ -163,6 +163,7 @@ public final class InspectionTestUtil { public static void runTool(@NotNull InspectionToolWrapper toolWrapper, @NotNull final AnalysisScope scope, @NotNull final GlobalInspectionContextForTests globalContext) { + IndexingTestUtil.waitUntilIndexesAreReady(scope.getProject()); final String shortName = toolWrapper.getShortName(); final HighlightDisplayKey key = HighlightDisplayKey.find(shortName); if (key == null){