From aa1ef678aed878c53b3afcda8444b0eecc9ff860 Mon Sep 17 00:00:00 2001 From: Anna Kozlova Date: Wed, 11 May 2016 12:11:27 +0200 Subject: [PATCH] java tests: ensure search is completed with onFound so all invariants would be in the consistent state --- .../intellij/execution/testframework/SearchForTestsTask.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/execution/impl/src/com/intellij/execution/testframework/SearchForTestsTask.java b/java/execution/impl/src/com/intellij/execution/testframework/SearchForTestsTask.java index 5cd70d89a263..bbbc45e57405 100644 --- a/java/execution/impl/src/com/intellij/execution/testframework/SearchForTestsTask.java +++ b/java/execution/impl/src/com/intellij/execution/testframework/SearchForTestsTask.java @@ -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);