From 30ecf0d52fd531b707f112641938e7892c7f49b5 Mon Sep 17 00:00:00 2001 From: Matt Bovel Date: Tue, 19 Nov 2024 14:36:31 +0100 Subject: [PATCH] Only retry tests on CI --- project/Build.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) )