mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't let a huge number of invokeLater stick in the queue in test
This commit is contained in:
@@ -29,6 +29,7 @@ import com.intellij.psi.xml.XmlAttribute;
|
||||
import com.intellij.psi.xml.XmlTag;
|
||||
import com.intellij.psi.xml.XmlToken;
|
||||
import com.intellij.psi.xml.XmlTokenType;
|
||||
import com.intellij.util.ui.UIUtil;
|
||||
import org.jdom.Element;
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
@@ -290,6 +291,8 @@ public class LightAdvHighlightingTest extends LightDaemonAnalyzerTestCase {
|
||||
binary.getLOperand().replace(expression);
|
||||
binary.getROperand().replace(literal);
|
||||
|
||||
UIUtil.dispatchAllInvocationEvents();
|
||||
|
||||
expression.replace(binary);
|
||||
PostprocessReformattingAspect.getInstance(getProject()).clear(); // OOM otherwise
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user