1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-04-23 13:15:45 +02:00

Fix invocation for the long running test

This commit is contained in:
Alex Plate 2025-03-04 15:46:17 +02:00
parent 681cef1d69
commit 6eb9207ff6
No known key found for this signature in database
GPG Key ID: 0B97153C8FFEC09F

View File

@ -8,6 +8,7 @@
package org.jetbrains.plugins.ideavim.longrunning
import com.intellij.openapi.application.ApplicationManager
import com.intellij.testFramework.PlatformTestUtil
import com.maddyhome.idea.vim.api.injector
import org.jetbrains.plugins.ideavim.SkipNeovimReason
@ -23,7 +24,9 @@ class MacroTest : VimTestCase() {
configureByText("abc de${c}fg")
typeText(injector.parser.parseKeys("qahlq"))
typeText(injector.parser.parseKeys("1000000@a"))
PlatformTestUtil.dispatchAllInvocationEventsInIdeEventQueue()
ApplicationManager.getApplication().invokeAndWait {
PlatformTestUtil.dispatchAllInvocationEventsInIdeEventQueue()
}
assertState("abc de${c}fg")
}
}