From 87f3e48894add2c5be0061823d3747f395db96eb Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Thu, 30 Nov 2017 16:17:18 +0300 Subject: [PATCH] do not initialize FJP too early --- .../tests/com/intellij/util/xml/DomConcurrencyStressTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xml/dom-tests/tests/com/intellij/util/xml/DomConcurrencyStressTest.java b/xml/dom-tests/tests/com/intellij/util/xml/DomConcurrencyStressTest.java index be1d0e3a8d2f..c0959ecb4e6a 100644 --- a/xml/dom-tests/tests/com/intellij/util/xml/DomConcurrencyStressTest.java +++ b/xml/dom-tests/tests/com/intellij/util/xml/DomConcurrencyStressTest.java @@ -45,8 +45,6 @@ import java.util.concurrent.CountDownLatch; * @author peter */ public class DomConcurrencyStressTest extends DomTestCase { - private static final int ITERATIONS = Timings.adjustAccordingToMySpeed(239, true); - public void testInternalDomLocksReadConsistency() throws Throwable { getDomManager().registerFileDescription(new DomFileDescription(MyElement.class, "a"), getTestRootDisposable()); @@ -79,6 +77,7 @@ public class DomConcurrencyStressTest extends DomTestCase { "" + ""); + final int ITERATIONS = Timings.adjustAccordingToMySpeed(239, true); System.out.println("ITERATIONS =" + ITERATIONS); runThreads(42, new Runnable() { @Override @@ -184,6 +183,7 @@ public class DomConcurrencyStressTest extends DomTestCase { } public void testBigCustomFile() throws Throwable { + final int ITERATIONS = Timings.adjustAccordingToMySpeed(239, true); getDomManager().registerFileDescription(new DomFileDescription<>(MyAllCustomElement.class, "component"), getTestRootDisposable()); registerExtender(MyAllCustomElement.class, MyAllCustomExtender.class);