initialize ForkJoinCommon pool because some tests do not init application but want to use parallel streams

This commit is contained in:
Alexey Kudravtsev
2016-08-15 16:55:00 +03:00
parent b4475becf6
commit 73a9685aca
2 changed files with 6 additions and 0 deletions
@@ -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()));
+1
View File
@@ -27,5 +27,6 @@
<orderEntry type="library" name="KotlinJavaRuntime" level="project" />
<orderEntry type="library" scope="TEST" name="assertJ" level="project" />
<orderEntry type="library" scope="TEST" name="memoryfilesystem" level="project" />
<orderEntry type="module" module-name="boot" />
</component>
</module>