Skip to content

Commit

Permalink
retry flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
Christophe '116' Loiseau committed Apr 26, 2024
1 parent 8dfd665 commit cf0b700
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

plugins {
`java-library`
id("org.gradle.test-retry") version "1.5.9"
}

dependencies {
Expand All @@ -31,4 +32,13 @@ dependencies {
testImplementation(libs.awaitility)
}

tasks {
withType<Test> {
retry {
maxRetries.set(3)
maxFailures.set(6)
failOnPassedAfterRetry.set(true)
}
}
}

0 comments on commit cf0b700

Please sign in to comment.