speed up test execution by effectively removing the necessity for sleep(100) every 5 tests

This commit is contained in:
Valentin Fondaratov
2017-01-11 01:14:51 +03:00
parent f27d5171bd
commit 1d89b014b0
@@ -153,6 +153,7 @@ public class ProjectManagerImpl extends ProjectManagerEx implements Disposable {
for (int i = 0; i < 42; i++) {
if (myProjects.size() < MAX_LEAKY_PROJECTS) break;
System.gc();
if (myProjects.size() < MAX_LEAKY_PROJECTS) break;
TimeoutUtil.sleep(100);
System.gc();
}