Skip to content

Commit

Permalink
use retry plugin to handle flaky tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alafanechere committed May 10, 2023
1 parent 36087e7 commit 56e6eee
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions airbyte-integrations/connectors/source-postgres/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ plugins {
id 'airbyte-integration-test-java'
id 'airbyte-performance-test-java'
id 'airbyte-connector-acceptance-test'
id 'org.gradle.test-retry' version '1.5.2'
}

application {
Expand Down Expand Up @@ -38,3 +39,11 @@ dependencies {
integrationTestJavaImplementation files(project(':airbyte-integrations:bases:base-java').airbyteDocker.outputs)
performanceTestJavaImplementation files(project(':airbyte-integrations:bases:base-java').airbyteDocker.outputs)
}

test {
retry {
maxRetries = 3
maxFailures = 20
failOnPassedAfterRetry = true
}
}

0 comments on commit 56e6eee

Please sign in to comment.