mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
asyc tests: ensure history collection started before the view was disposed
EA-127745 - IOE: ObjectTree.register
This commit is contained in:
+6
-3
@@ -122,7 +122,7 @@ public class SMTestRunnerResultsForm extends TestResultsPanel
|
||||
private final Set<String> myMentionedCategories = new LinkedHashSet<>();
|
||||
private volatile boolean myTestsRunning = true;
|
||||
private AbstractTestProxy myLastSelected;
|
||||
private boolean myDisposed = false;
|
||||
private volatile boolean myDisposed = false;
|
||||
private SMTestProxy myLastFailed;
|
||||
private final Set<Update> myRequests = Collections.synchronizedSet(new HashSet<>());
|
||||
private final Alarm myUpdateTreeRequests = new Alarm(Alarm.ThreadToUse.POOLED_THREAD, this);
|
||||
@@ -331,8 +331,11 @@ public class SMTestRunnerResultsForm extends TestResultsPanel
|
||||
Math.max(0, myFinishedTestCount - myFailedTestCount - myIgnoredTestCount),
|
||||
myTotalTestCount - myStartedTestCount,
|
||||
myIgnoredTestCount);
|
||||
UIUtil.invokeLaterIfNeeded(() -> TestsUIUtil.notifyByBalloon(myProperties.getProject(), testsRoot, myProperties, presentation));
|
||||
addToHistory(testsRoot, myProperties, this);
|
||||
UIUtil.invokeLaterIfNeeded(() -> {
|
||||
TestsUIUtil.notifyByBalloon(myProperties.getProject(), testsRoot, myProperties, presentation);
|
||||
addToHistory(testsRoot, myProperties, this);
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
private void addToHistory(final SMTestProxy.SMRootTestProxy root,
|
||||
|
||||
Reference in New Issue
Block a user