From 94e90489764c8b18c244ced87ac836e9991086b5 Mon Sep 17 00:00:00 2001 From: peter Date: Fri, 8 Apr 2016 16:52:39 +0200 Subject: [PATCH] assert TransactionTest is run in a non-modal state --- .../testSrc/com/intellij/application/TransactionTest.groovy | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/platform-tests/testSrc/com/intellij/application/TransactionTest.groovy b/platform/platform-tests/testSrc/com/intellij/application/TransactionTest.groovy index 128abf2aea82..fdac1d2044f8 100644 --- a/platform/platform-tests/testSrc/com/intellij/application/TransactionTest.groovy +++ b/platform/platform-tests/testSrc/com/intellij/application/TransactionTest.groovy @@ -26,6 +26,7 @@ class TransactionTest extends LightPlatformTestCase { @Override protected void setUp() throws Exception { + assert LaterInvocator.currentModalityState == ModalityState.NON_MODAL super.setUp() Registry.get("ide.require.transaction.for.model.changes").setValue(true) LoggedErrorProcessor.instance.disableStderrDumping(testRootDisposable)