Skip to content

Commit

Permalink
Fix flaky tests
Browse files Browse the repository at this point in the history
Signed-off-by: Prudhvi Godithi <[email protected]>
  • Loading branch information
prudhvigodithi committed Jan 30, 2024
1 parent 761c9bb commit 7a810e8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spi/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ plugins {
id 'jacoco'
id 'maven-publish'
id 'signing'
id "org.gradle.test-retry" version "1.5.8"
}

apply plugin: 'opensearch.java'
Expand Down Expand Up @@ -70,6 +71,10 @@ shadowJar {
}

test {
retry {
failOnPassedAfterRetry = false
maxRetries = 5
}
doFirst {
// reverse operation of https://github.com/elastic/elasticsearch/blob/7.6/buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy#L736-L743
// to fix the classpath for unit tests
Expand Down

0 comments on commit 7a810e8

Please sign in to comment.