mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[threading] IJPL-196952: Run more tests in background
GitOrigin-RevId: 2ce17fe17e6db5c50abe0c1a359b69bc9dc9d1b2
This commit is contained in:
committed by
intellij-monorepo-bot
parent
e4b741f7de
commit
b0316f0799
+4
-1
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user