diff --git a/.bazelrc b/.bazelrc
index 8c3266121..e6c3dc6ab 100644
--- a/.bazelrc
+++ b/.bazelrc
@@ -30,6 +30,7 @@ build:remote17 --tool_java_runtime_version=remotejdk_17
test --build_tests_only
test --test_output=errors
+test --flaky_test_attempts=3
import %workspace%/tools/remote-bazelrc
diff --git a/pom.xml b/pom.xml
index 0ea089eab..4ed91ffc4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -282,6 +282,7 @@
${test-fork-count}
true
@{argLine}
+ 3