From cf1535907997869f14be1bb8197a533c6b68b6de Mon Sep 17 00:00:00 2001 From: Mikhael Bogdanov Date: Fri, 8 Nov 2019 08:24:22 +0100 Subject: [PATCH] Decrease number of forked test processes on local machine There are no any benefits in execution time --- buildSrc/src/main/kotlin/tasks.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildSrc/src/main/kotlin/tasks.kt b/buildSrc/src/main/kotlin/tasks.kt index c76196b8d9b..bc673fb4aa1 100644 --- a/buildSrc/src/main/kotlin/tasks.kt +++ b/buildSrc/src/main/kotlin/tasks.kt @@ -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() }