mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[gui-tests] Remove some pauses in 'unit tests' tests
This commit is contained in:
@@ -219,10 +219,10 @@ object GuiTestUtilKt {
|
||||
}, timeout)
|
||||
}
|
||||
|
||||
inline fun <R> tryWithPause(exceptionClass: Class<out Exception>,
|
||||
fun <R> tryWithPause(exceptionClass: Class<out Exception>,
|
||||
condition: String = "try block will not throw ${exceptionClass.name} exception",
|
||||
timeout: Timeout,
|
||||
crossinline tryBlock: () -> R): R {
|
||||
tryBlock: () -> R): R {
|
||||
val exceptionRef: Ref<Exception> = Ref.create()
|
||||
try {
|
||||
return withPauseWhenNull (condition, timeout) {
|
||||
|
||||
Reference in New Issue
Block a user