Skip to content

Commit

Permalink
disabler parallell tester i CI
Browse files Browse the repository at this point in the history
Co-authored-by: Håkon Arneng Holmstedt <hakon.arneng.holmstedt@nav.no>
  • Loading branch information
davidsteinsland and hholmste committed Nov 13, 2024
1 parent ebcd985 commit 1a2a3ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ tasks {
testLogging {
events("passed", "skipped", "failed")
}
systemProperty("junit.jupiter.execution.parallel.enabled", "true")
val parallellDisabled = System.getenv("CI" ) == "true"
systemProperty("junit.jupiter.execution.parallel.enabled", parallellDisabled.not().toString())
systemProperty("junit.jupiter.execution.parallel.mode.default", "concurrent")
systemProperty("junit.jupiter.execution.parallel.config.strategy", "fixed")
systemProperty("junit.jupiter.execution.parallel.config.fixed.parallelism", "8")
Expand Down
2 changes: 1 addition & 1 deletion src/test/kotlin/no/nav/helse/spokelse/AbstractE2ETest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ internal abstract class AbstractE2ETest {
requestBody: String? = null,
forventetHttpStatus: Int = 200,
forventetResponseBody: String? = null,
timeout: Duration = Duration.ofSeconds(40),
timeout: Duration = Duration.ofSeconds(5),
authorized: Boolean = true
) {
naisfulTestApp(
Expand Down

0 comments on commit 1a2a3ed

Please sign in to comment.