tests: do not run cleanup of incorrect repository libraries in tests

It makes no sense and tests may report memory leaks because of that (IDEA-180424).
This commit is contained in:
nik
2017-10-12 11:10:11 +03:00
parent 4f7e191b5f
commit 94ffbb25aa
@@ -176,9 +176,11 @@ public class RepositoryLibrarySynchronizer implements StartupActivity, DumbAware
}
});
ApplicationManager.getApplication().executeOnPooledThread(() -> {
removeDuplicatedUrlsFromRepositoryLibraries(project);
syncTask.run();
});
if (!ApplicationManager.getApplication().isUnitTestMode()) {
ApplicationManager.getApplication().executeOnPooledThread(() -> {
removeDuplicatedUrlsFromRepositoryLibraries(project);
syncTask.run();
});
}
}
}