diff --git a/platform/testFramework/src/_FirstInSuiteTest.java b/platform/testFramework/src/_FirstInSuiteTest.java index 875fc9a6be26..671659a77c8b 100644 --- a/platform/testFramework/src/_FirstInSuiteTest.java +++ b/platform/testFramework/src/_FirstInSuiteTest.java @@ -15,6 +15,7 @@ */ import com.intellij.TestAll; +import com.intellij.concurrency.IdeaForkJoinWorkerThreadFactory; import com.intellij.openapi.util.io.FileUtilRt; import com.intellij.testFramework.TestRunnerUtil; import junit.framework.TestCase; @@ -53,6 +54,10 @@ public class _FirstInSuiteTest extends TestCase { if (nothingIsCalled) return; nothingIsCalled = true; + + // some tests do not initialize Application but want to use parallel streams + IdeaForkJoinWorkerThreadFactory.setupForkJoinCommonPool(); + suiteStarted = System.nanoTime(); SwingUtilities.invokeAndWait(() -> System.out.println("EDT is " + Thread.currentThread())); diff --git a/platform/testFramework/testFramework.iml b/platform/testFramework/testFramework.iml index 5535f3787bfc..a3d3621de9e7 100644 --- a/platform/testFramework/testFramework.iml +++ b/platform/testFramework/testFramework.iml @@ -27,5 +27,6 @@ + \ No newline at end of file