[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:
@@ -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 {
|
||||
|
||||
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user