diff --git a/project/Build.scala b/project/Build.scala index d742ab9ad3f4..148810d4af99 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -327,7 +327,7 @@ object Build { .withTestRetryConfiguration( config.testRetryConfiguration .withFlakyTestPolicy(FlakyTestPolicy.Fail) - .withMaxRetries(1) + .withMaxRetries(if (isInsideCI) 1 else 0) .withMaxFailures(10) .withClassesFilter((className, _) => !noRetryTestClasses.contains(className)) )