java tests: ensure search is completed with onFound so all invariants would be in the consistent state

This commit is contained in:
Anna Kozlova
2016-05-11 12:46:25 +02:00
parent 40226e4f01
commit aa1ef678ae
@@ -62,11 +62,11 @@ public abstract class SearchForTestsTask extends Task.Backgroundable {
if (ApplicationManager.getApplication().isUnitTestMode()) {
try {
search();
onFound();
}
catch (Throwable e) {
LOG.error(e);
}
onFound();
}
else {
myProcessIndicator = new BackgroundableProcessIndicator(this);