mirror of https://github.com/usbharu/Hideout.git
chore: テスト同時実行数の設定を修正
This commit is contained in:
parent
3f830097ed
commit
6b2270356f
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue