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) {
|
||||
maxParallelForks =
|
||||
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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user