mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 13:02:30 +07:00
flush all events in test
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.jetbrains.env;
|
||||
|
||||
import com.google.common.collect.Sets;
|
||||
import com.intellij.ide.IdeEventQueue;
|
||||
import com.intellij.openapi.projectRoots.Sdk;
|
||||
import com.intellij.testFramework.LeakHunter;
|
||||
import com.jetbrains.python.psi.LanguageLevel;
|
||||
@@ -34,6 +35,7 @@ public abstract class PyTestTask {
|
||||
* Each inheritor may do anything on edt, but should call parent *after all* on main thread
|
||||
*/
|
||||
public void tearDown() throws Exception {
|
||||
IdeEventQueue.getInstance().flushQueue();
|
||||
LeakHunter.checkNonDefaultProjectLeak();
|
||||
LeakHunter.checkProjectLeak();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user