From f76d573aba3cc4b1b36dc2d64a921df6ccbd4e74 Mon Sep 17 00:00:00 2001 From: Dmitry Batkovich Date: Wed, 22 Feb 2017 22:39:36 +0300 Subject: [PATCH] try to fix failing tests --- .../testFramework/src/com/intellij/testFramework/EdtTestUtil.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/testFramework/src/com/intellij/testFramework/EdtTestUtil.kt b/platform/testFramework/src/com/intellij/testFramework/EdtTestUtil.kt index c1a53f31ee89..9a1e13e3a5fe 100644 --- a/platform/testFramework/src/com/intellij/testFramework/EdtTestUtil.kt +++ b/platform/testFramework/src/com/intellij/testFramework/EdtTestUtil.kt @@ -59,7 +59,7 @@ fun runInEdtAndWait(runnable: () -> Unit) { } else { try { - SwingUtilities.invokeAndWait(runnable) + SwingUtilities.invokeAndWait({ runnable() }) } catch (e: InvocationTargetException) { throw e.cause ?: e