From 28727029958907b5dd90b7450bc8a0de323c7ca1 Mon Sep 17 00:00:00 2001 From: ncabatoff Date: Fri, 18 Sep 2020 11:07:35 -0400 Subject: [PATCH] Use a longer timeout for DeriveActiveCore in the hopes that giving more time will allow for raft leader election failure to recover. (#9988) --- helper/testhelpers/testhelpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper/testhelpers/testhelpers.go b/helper/testhelpers/testhelpers.go index 982bf4fea..7cf8766d5 100644 --- a/helper/testhelpers/testhelpers.go +++ b/helper/testhelpers/testhelpers.go @@ -230,7 +230,7 @@ func deriveStableActiveCore(t testing.T, cluster *vault.TestCluster) *vault.Test } func DeriveActiveCore(t testing.T, cluster *vault.TestCluster) *vault.TestClusterCore { - for i := 0; i < 10; i++ { + for i := 0; i < 20; i++ { for _, core := range cluster.Cores { leaderResp, err := core.Client.Sys().Leader() if err != nil {