[Analysis] Try to fix randomly failing tests because of unregistered FileAttributeService

It should be unregistered with the application by ApplicationEnvironmentDisposer
which is registered in :compiler:tests-common-new
This commit is contained in:
Ilya Kirillov
2022-06-29 14:52:13 +02:00
parent 7bef560b6b
commit 271ecfbd68
5 changed files with 6 additions and 3 deletions
@@ -20,6 +20,7 @@ dependencies {
api(project(":analysis:decompiled:light-classes-for-decompiled"))
api(project(":analysis:analysis-api-standalone:analysis-api-standalone-base"))
testApi(projectTests(":analysis:analysis-test-framework"))
testApi(projectTests(":analysis:analysis-api-impl-base"))
testApi(projectTests(":analysis:analysis-api-fir"))
@@ -15,7 +15,8 @@ dependencies {
api(intellijCore())
testImplementation(projectTests(":compiler:tests-common"))
testImplementation(projectTests(":compiler:tests-common-new"))
testImplementation(projectTests(":analysis:analysis-test-framework"))
}
sourceSets {
@@ -33,7 +33,7 @@ import java.util.stream.Collectors
abstract class AbstractStubBuilderTest : KotlinTestWithEnvironment() {
override fun createEnvironment(): KotlinCoreEnvironment {
return KotlinTestUtils.createEnvironmentWithMockJdkAndIdeaAnnotations(testRootDisposable, ConfigurationKind.JDK_NO_RUNTIME)
return KotlinTestUtils.createEnvironmentWithMockJdkAndIdeaAnnotations(ApplicationEnvironmentDisposer.ROOT_DISPOSABLE, ConfigurationKind.JDK_NO_RUNTIME)
}
override fun setUp() {
@@ -9,9 +9,9 @@ dependencies {
api(project(":core:deserialization.common.jvm"))
api(project(":core:deserialization"))
implementation(project(":core:compiler.common.jvm"))
testImplementation(projectTests(":compiler:tests-common-new"))
api(intellijCore())
}
sourceSets {
@@ -19,6 +19,7 @@ dependencies {
testImplementation(projectTests(":analysis:decompiled:decompiler-to-file-stubs"))
testImplementation(projectTests(":analysis:analysis-api-impl-base"))
testImplementation(projectTests(":analysis:analysis-api-fir"))
testImplementation(projectTests(":compiler:tests-common-new"))
}
sourceSets {