Decrease number of forked test processes on local machine
There are no any benefits in execution time
This commit is contained in:
@@ -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()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user