Skip to content

Commit

Permalink
Remove CI environment check for test retries
Browse files Browse the repository at this point in the history
Signed-off-by: Kunal Kotwani <[email protected]>
  • Loading branch information
kotwanikunal committed Mar 29, 2022
1 parent 3dcf356 commit 37e398d
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -388,16 +388,13 @@ gradle.projectsEvaluated {
}

// test retry configuration
boolean isCiServer = System.getenv().containsKey("CI")
subprojects {
apply plugin: "org.gradle.test-retry"
if (isCiServer) {
tasks.withType(Test).configureEach {
retry {
failOnPassedAfterRetry = false
maxRetries = 1
maxFailures = 10
}
tasks.withType(Test).configureEach {
retry {
failOnPassedAfterRetry = false
maxRetries = 1
maxFailures = 10
}
}
}
Expand Down

0 comments on commit 37e398d

Please sign in to comment.