mirror of
https://github.com/usbharu/Hideout.git
synced 2026-07-22 13:13:54 +00:00
chore: テスト同時実行数の設定を修正
This commit is contained in:
+2
-2
@@ -1,6 +1,6 @@
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
import org.openapitools.generator.gradle.plugin.tasks.GenerateTask
|
||||
import kotlin.math.min
|
||||
import kotlin.math.max
|
||||
|
||||
val ktor_version: String by project
|
||||
val kotlin_version: String by project
|
||||
@@ -29,7 +29,7 @@ version = "0.0.1"
|
||||
tasks.withType<Test> {
|
||||
useJUnitPlatform()
|
||||
val cpus = Runtime.getRuntime().availableProcessors()
|
||||
maxParallelForks = min(1, cpus - 1)
|
||||
maxParallelForks = max(1, cpus - 1)
|
||||
setForkEvery(4)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user