fix flaky ImportHelperTest: ensure auto-import is executed

This commit is contained in:
peter
2016-11-24 12:06:18 +01:00
parent 0017c2784a
commit 16469a3b99
@@ -308,6 +308,9 @@ public class ImportHelperTest extends DaemonAnalyzerTestCase {
EditorTestUtil.executeAction(getEditor(), IdeActions.ACTION_COMMENT_BLOCK);
doHighlighting();
UIUtil.dispatchAllInvocationEvents();
assertEmpty(highlightErrors());
assertNotSame(0, ((PsiJavaFile)getFile()).getImportList().getAllImportStatements().length);