IJPL-155974 cleanup

GitOrigin-RevId: 82f959e3edca705548b4e1c22eafc4cf1efa0aa5
This commit is contained in:
Vladimir Krivosheev
2024-06-25 12:53:55 +02:00
committed by intellij-monorepo-bot
parent fa7b6baf9d
commit 314683bdb4
7 changed files with 165 additions and 190 deletions

View File

@@ -187,10 +187,11 @@ class SearchEverywhereTest : LightJavaCodeInsightFixtureTestCase() {
try {
abbreviationManager.register("cp", "CloseProject")
val future = ui.findElementsForPattern("cp")
val firstItem = waitForFuture(future, SEARCH_TIMEOUT)[0]
val firstItem = waitForFuture(future, SEARCH_TIMEOUT).firstOrNull()
val matchedAction = GotoActionTest.createMatchedAction(actionManager.getAction("CloseProject"), "cp")
assertEquals(matchedAction, firstItem)
} finally {
}
finally {
abbreviationManager.remove("cp", "CloseProject")
}