From 8e2201d4bdea7b4b85370f895436bd9e77897f85 Mon Sep 17 00:00:00 2001 From: peter Date: Tue, 14 Feb 2017 12:28:56 +0100 Subject: [PATCH] more diagnostics when LaterInvocatorTest.setUp fails --- .../intellij/openapi/application/impl/LaterInvocatorTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/platform-tests/testSrc/com/intellij/openapi/application/impl/LaterInvocatorTest.java b/platform/platform-tests/testSrc/com/intellij/openapi/application/impl/LaterInvocatorTest.java index cdf4f4b21ede..43dcdf8e0e8f 100644 --- a/platform/platform-tests/testSrc/com/intellij/openapi/application/impl/LaterInvocatorTest.java +++ b/platform/platform-tests/testSrc/com/intellij/openapi/application/impl/LaterInvocatorTest.java @@ -96,7 +96,7 @@ public class LaterInvocatorTest extends PlatformTestCase { } }); if (exception[0] != null) throw exception[0]; - UIUtil.invokeAndWaitIfNeeded((Runnable)() -> TestCase.assertFalse("Can't run test", LaterInvocator.isInModalContext())); + UIUtil.invokeAndWaitIfNeeded((Runnable)() -> TestCase.assertFalse("Can't run test " + ModalityState.current(), LaterInvocator.isInModalContext())); flushSwingQueue(); }