Skip to content

Commit

Permalink
Backport of Increase timeout while waiting for vault server to be rea…
Browse files Browse the repository at this point in the history
…dy into release/1.2.x (#2718)

backport of commit 49ea87d

Co-authored-by: Curt Bushko <cbushko@gmail.com>
  • Loading branch information
hc-github-team-consul-core and curtbushko authored Aug 2, 2023
1 parent dd7449c commit cb83d73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions acceptance/framework/vault/vault_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,12 +389,12 @@ func (v *VaultCluster) initAndUnseal(t *testing.T) {

v.logger.Logf(t, "initializing and unsealing Vault")
namespace := v.helmOptions.KubectlOptions.Namespace
retrier := &retry.Timer{Timeout: 2 * time.Minute, Wait: 1 * time.Second}
retrier := &retry.Timer{Timeout: 4 * time.Minute, Wait: 1 * time.Second}
retry.RunWith(retrier, t, func(r *retry.R) {
// Wait for vault server pod to be running so that we can create Vault client without errors.
serverPod, err := v.kubernetesClient.CoreV1().Pods(namespace).Get(context.Background(), fmt.Sprintf("%s-vault-0", v.releaseName), metav1.GetOptions{})
require.NoError(r, err)
require.Equal(r, serverPod.Status.Phase, corev1.PodRunning)
require.Equal(r, corev1.PodRunning, serverPod.Status.Phase)

// Set up the client so that we can make API calls to initialize and unseal.
v.vaultClient = v.SetupVaultClient(t)
Expand Down

0 comments on commit cb83d73

Please sign in to comment.