less GC's in StubAstSwitchTest.test concurrent stub and AST reloading

This commit is contained in:
peter
2018-06-07 19:13:18 +02:00
parent 3f68aec01d
commit 7a1bd912f2
@@ -287,11 +287,11 @@ class B {
}
void "test concurrent stub and AST reloading"() {
def fileNumbers = 0..<10
def fileNumbers = 0..<5
List<PsiJavaFileImpl> files = fileNumbers.collect {
(PsiJavaFileImpl)myFixture.addFileToProject("a${it}.java", "import foo.bar; class A{}")
}
for (iteration in 0..10) {
for (iteration in 0..5) {
GCUtil.tryGcSoftlyReachableObjects()
files.each { assert !it.treeElement }