From 7901a5f4546ef1868ada6232a1e9924065afceb0 Mon Sep 17 00:00:00 2001
From: Rahul Karajgikar <50844303+rahulkarajgikar@users.noreply.github.com>
Date: Fri, 3 May 2024 00:49:16 +0530
Subject: [PATCH] Increase cluster publish timeout in flaky test
 testStaleClusterManagerNotHijackingMajority (#13463)

Signed-off-by: Rahul Karajgikar <karajgik@amazon.com>
Co-authored-by: Rahul Karajgikar <karajgik@amazon.com>
---
 .../opensearch/discovery/StableClusterManagerDisruptionIT.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/src/internalClusterTest/java/org/opensearch/discovery/StableClusterManagerDisruptionIT.java b/server/src/internalClusterTest/java/org/opensearch/discovery/StableClusterManagerDisruptionIT.java
index f6f2b2dbfd096..4de79a31d0146 100644
--- a/server/src/internalClusterTest/java/org/opensearch/discovery/StableClusterManagerDisruptionIT.java
+++ b/server/src/internalClusterTest/java/org/opensearch/discovery/StableClusterManagerDisruptionIT.java
@@ -203,7 +203,7 @@ public void testStaleClusterManagerNotHijackingMajority() throws Exception {
             3,
             Settings.builder()
                 .put(LeaderChecker.LEADER_CHECK_TIMEOUT_SETTING.getKey(), "1s")
-                .put(Coordinator.PUBLISH_TIMEOUT_SETTING.getKey(), "1s")
+                .put(Coordinator.PUBLISH_TIMEOUT_SETTING.getKey(), "2s")
                 .build()
         );
         ensureStableCluster(3);