teach more tests that find in path is multithreaded (IDEA-CR-15039)

This commit is contained in:
peter
2016-10-29 09:33:00 +02:00
parent d55c683edb
commit f6a57edb2d
@@ -131,7 +131,7 @@ public class SearchInLibsTest extends PsiTestCase {
model.setStringToFind("xxx");
model.setProjectScope(false);
List<UsageInfo> usages = new ArrayList<>();
List<UsageInfo> usages = Collections.synchronizedList(new ArrayList<>());
CommonProcessors.CollectProcessor<UsageInfo> consumer = new CommonProcessors.CollectProcessor<>(usages);
FindUsagesProcessPresentation presentation = FindInProjectUtil.setupProcessPresentation(getProject(), false, FindInProjectUtil.setupViewPresentation(false, model));
FindInProjectUtil.findUsages(model, getProject(), consumer, presentation);