From cf0b70025a7d6bff50e546a53c9f289716d13fc1 Mon Sep 17 00:00:00 2001 From: Christophe '116' Loiseau <116@lab0.net> Date: Fri, 26 Apr 2024 15:02:44 +0200 Subject: [PATCH] retry flaky test --- .../control-plane-aggregate-services/build.gradle.kts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/core/control-plane/control-plane-aggregate-services/build.gradle.kts b/core/control-plane/control-plane-aggregate-services/build.gradle.kts index 0954257b3d0..77a3deef88b 100644 --- a/core/control-plane/control-plane-aggregate-services/build.gradle.kts +++ b/core/control-plane/control-plane-aggregate-services/build.gradle.kts @@ -14,6 +14,7 @@ plugins { `java-library` + id("org.gradle.test-retry") version "1.5.9" } dependencies { @@ -31,4 +32,13 @@ dependencies { testImplementation(libs.awaitility) } +tasks { + withType { + retry { + maxRetries.set(3) + maxFailures.set(6) + failOnPassedAfterRetry.set(true) + } + } +}