Trying to fix a blinking test

Sometimes quick-fix tests that use Change Signature failed with weird assertions, allegedly because an alarm inside the Change Signature dialog schedules something on AWT thread that fires while the next test is running
This commit is contained in:
Andrey Breslav
2013-08-14 18:59:03 +04:00
parent 40f3a1e1aa
commit f5af1f5461
@@ -18,6 +18,7 @@ package org.jetbrains.jet.plugin.quickfix;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.Disposer;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiNameIdentifierOwner;
import com.intellij.psi.util.PsiTreeUtil;
@@ -120,6 +121,7 @@ public abstract class ChangeFunctionSignatureFix extends JetIntentionAction<PsiE
JetChangeInfo changeInfo = dialog.evaluateChangeInfo();
JetChangeSignatureProcessor processor = new JetChangeSignatureProcessor(element.getProject(), changeInfo, getText());
processor.run();
Disposer.dispose(dialog.getDisposable());
}
});
}