IJPL-578 wait for indexes to be ready in tests (InspectionTestUtil.runTool)

GitOrigin-RevId: f76f660cfe891e25417f2212a6d1d0659422950b
This commit is contained in:
Andrei.Kuznetsov
2024-03-22 00:32:29 +00:00
committed by intellij-monorepo-bot
parent c6e28ee33f
commit 96e89c2bef
@@ -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){