Skip to content

Commit

Permalink
Fix Integ test retry configiration (opensearch-project#463)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Widdis <[email protected]>
  • Loading branch information
dbwiddis authored Jan 27, 2024
1 parent f4fa29e commit 693b71d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -408,13 +408,15 @@ task integTestRemote(type: RestIntegTestTask) {


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

0 comments on commit 693b71d

Please sign in to comment.