Only retry tests in CI (#950)

This commit is contained in:
Trask Stalnaker 2020-08-12 15:53:19 -07:00 committed by GitHub
parent 8bdde56d06
commit d778297b55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -282,6 +282,6 @@ tasks.withType(Test).configureEach {
retry {
// You can see tests that were retried by this mechanism in the collected test reports and build scans.
maxRetries = 5
maxRetries = System.getenv("CI") != null ? 5 : 0
}
}