Decrease number of forked test processes on local machine

There are no any benefits in execution time
This commit is contained in:
Mikhael Bogdanov
2019-11-08 08:24:22 +01:00
parent 7c9578116b
commit cf15359079
+1 -1
View File
@@ -134,7 +134,7 @@ fun Project.projectTest(
if (parallel) { if (parallel) {
maxParallelForks = maxParallelForks =
project.findProperty("kotlin.test.maxParallelForks")?.toString()?.toInt() project.findProperty("kotlin.test.maxParallelForks")?.toString()?.toInt()
?: Math.max(Runtime.getRuntime().availableProcessors() / 2, 1) ?: Math.max(Runtime.getRuntime().availableProcessors() / if (kotlinBuildProperties.isTeamcityBuild) 2 else 4, 1)
} }
body() body()
} }