mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
less GC's in StubAstSwitchTest.test concurrent stub and AST reloading
This commit is contained in:
@@ -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 }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user