Skip to content

Commit 3e78385

Browse files
committed
fix: max parallel fork count for tests
Signed-off-by: alperozturk <[email protected]>
1 parent bc1f5a2 commit 3e78385

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ tasks.withType<JavaCompile>().configureEach {
327327

328328
tasks.withType<Test>().configureEach {
329329
// Run tests in parallel
330-
maxParallelForks = Runtime.getRuntime().availableProcessors().div(2)
330+
maxParallelForks = maxOf(1, Runtime.getRuntime().availableProcessors().div(2))
331331

332332
// increased logging for tests
333333
testLogging.events("passed", "skipped", "failed")

0 commit comments

Comments
 (0)