From a22c5d7ba869481f36d4c4255dee635957f9748e Mon Sep 17 00:00:00 2001 From: "mariia.morozova@jetbrains.com" Date: Wed, 29 Aug 2018 19:26:31 +0300 Subject: [PATCH] [gui-tests] Remove some pauses in 'unit tests' tests --- .../src/com/intellij/testGuiFramework/impl/GuiTestUtilKt.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {