fix: max parallel fork count for tests

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk
2025-12-17 12:05:42 +01:00
parent bc1f5a23e6
commit 3e78385c9f

View File

@ -327,7 +327,7 @@ tasks.withType<JavaCompile>().configureEach {
tasks.withType<Test>().configureEach {
// Run tests in parallel
maxParallelForks = Runtime.getRuntime().availableProcessors().div(2)
maxParallelForks = maxOf(1, Runtime.getRuntime().availableProcessors().div(2))
// increased logging for tests
testLogging.events("passed", "skipped", "failed")