Skip to content

Commit

Permalink
add coverage caching issue workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
monosoul committed Nov 4, 2023
1 parent 35ae3eb commit 97546fb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions buildSrc/src/main/kotlin/coverage-convention.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import java.lang.Thread.sleep
import java.time.Duration

plugins {
kotlin("jvm")
jacoco
Expand All @@ -12,4 +15,12 @@ tasks {
}
dependsOn(withType<Test>())
}

withType<Test> {
doLast {
sleep(
Duration.ofSeconds(2).toMillis()
)
}
}
}

0 comments on commit 97546fb

Please sign in to comment.