diff --git a/platform/testGuiFramework/src/com/intellij/testGuiFramework/impl/GuiTestUtilKt.kt b/platform/testGuiFramework/src/com/intellij/testGuiFramework/impl/GuiTestUtilKt.kt index 626ecf6471d7..941c4daa2c2e 100644 --- a/platform/testGuiFramework/src/com/intellij/testGuiFramework/impl/GuiTestUtilKt.kt +++ b/platform/testGuiFramework/src/com/intellij/testGuiFramework/impl/GuiTestUtilKt.kt @@ -219,10 +219,10 @@ object GuiTestUtilKt { }, timeout) } - inline fun tryWithPause(exceptionClass: Class, + fun tryWithPause(exceptionClass: Class, condition: String = "try block will not throw ${exceptionClass.name} exception", timeout: Timeout, - crossinline tryBlock: () -> R): R { + tryBlock: () -> R): R { val exceptionRef: Ref = Ref.create() try { return withPauseWhenNull (condition, timeout) {