[threading] IJPL-196952: Run more tests in background

GitOrigin-RevId: 2ce17fe17e6db5c50abe0c1a359b69bc9dc9d1b2
This commit is contained in:
Konstantin Nisht
2025-08-12 13:39:31 +00:00
committed by intellij-monorepo-bot
parent e4b741f7de
commit b0316f0799
@@ -3,6 +3,7 @@ package com.intellij.platform.testFramework
import com.intellij.ide.plugins.*
import com.intellij.openapi.Disposable
import com.intellij.openapi.application.invokeAndWaitIfNeeded
import com.intellij.openapi.util.BuildNumber
import com.intellij.openapi.util.io.FileUtil
import com.intellij.platform.testFramework.plugins.*
@@ -69,7 +70,9 @@ fun loadPluginWithText(
return Disposable {
val reason = DynamicPlugins.checkCanUnloadWithoutRestart(descriptor)
unloadAndUninstallPlugin(descriptor)
invokeAndWaitIfNeeded {
unloadAndUninstallPlugin(descriptor)
}
assertThat(reason).isNull()
}
}