From 5863dcf6077d33a9bf7fa7d890a9d59ce678ea65 Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Tue, 5 Jun 2012 14:20:39 +0400 Subject: [PATCH] do not restart daemon in the middle of the test --- .../profile/codeInspection/InspectionProjectProfileManager.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/lang-impl/src/com/intellij/profile/codeInspection/InspectionProjectProfileManager.java b/platform/lang-impl/src/com/intellij/profile/codeInspection/InspectionProjectProfileManager.java index b32e35d1f3ef..9d44932d6a20 100644 --- a/platform/lang-impl/src/com/intellij/profile/codeInspection/InspectionProjectProfileManager.java +++ b/platform/lang-impl/src/com/intellij/profile/codeInspection/InspectionProjectProfileManager.java @@ -36,6 +36,7 @@ import com.intellij.packageDependencies.DependencyValidationManager; import com.intellij.profile.DefaultProjectProfileManager; import com.intellij.profile.Profile; import com.intellij.psi.PsiElement; +import com.intellij.util.ui.UIUtil; import org.jdom.Element; import org.jetbrains.annotations.NonNls; import org.jetbrains.annotations.NotNull; @@ -190,6 +191,7 @@ public class InspectionProjectProfileManager extends DefaultProjectProfileManage }; if (app.isUnitTestMode() || app.isHeadlessEnvironment()) { initInspectionProfilesRunnable.run(); + UIUtil.dispatchAllInvocationEvents(); //do not restart daemon in the middle of the test } else { app.executeOnPooledThread(initInspectionProfilesRunnable); }