mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
initialize ForkJoinCommon pool because some tests do not init application but want to use parallel streams
This commit is contained in:
@@ -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()));
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user