[maven] IDEA-381950 awaitConfiguration() after sync in tests

GitOrigin-RevId: 9bb6f57d2b1993a7734a7a0cddff91bc329a0d8d
This commit is contained in:
Dmitry Kichinsky
2025-11-16 16:29:34 +00:00
committed by intellij-monorepo-bot
parent b026036e33
commit 3fbdcb06c6
@@ -379,11 +379,11 @@ abstract class MavenImportingTestCase : MavenTestCase() {
}
protected open suspend fun importProjectsAsync(files: List<VirtualFile>) {
initProjectsManager(false)
projectsManager.addManagedFilesWithProfiles(files, MavenExplicitProfiles.NONE, null, null, true)
IndexingTestUtil.suspendUntilIndexesAreReady(project)
awaitConfiguration()
}
protected fun importProjectWithProfiles(vararg profiles: String) {
@@ -419,6 +419,7 @@ abstract class MavenImportingTestCase : MavenTestCase() {
}
}
IndexingTestUtil.waitUntilIndexesAreReady(project);
runBlockingMaybeCancellable { awaitConfiguration() }
}
protected suspend fun doImportProjectsAsync(files: List<VirtualFile>, failOnReadingError: Boolean, vararg profiles: String) {