fix async tree test

This commit is contained in:
Sergey Malenkov
2017-12-21 20:04:11 +03:00
parent 0734a3bc1a
commit a74f71c3c5
@@ -3,6 +3,7 @@ package com.jetbrains.python;
import com.intellij.navigation.ItemPresentation;
import com.intellij.openapi.command.WriteCommandAction;
import com.intellij.testFramework.PlatformTestUtil;
import com.jetbrains.python.fixtures.PyTestCase;
import com.jetbrains.python.psi.PyFunction;
import com.jetbrains.python.structureView.PyStructureViewElement;
@@ -134,6 +135,7 @@ public class PyStructureViewTest extends PyTestCase {
private void doTest(final String expected, final boolean inherited) {
myFixture.testStructureView(component -> {
component.setActionActive("SHOW_INHERITED", !inherited);
PlatformTestUtil.waitWhileBusy(component.getTree());
assertTreeEqual(component.getTree(), expected);
});
}