Skip to content

Commit

Permalink
Merge 49ea87d into backport/acceptance-vault-pending-running/nearly-l…
Browse files Browse the repository at this point in the history
…ucky-zebra
  • Loading branch information
hc-github-team-consul-core authored Aug 2, 2023
2 parents 6d4b36a + 49ea87d commit c10a7be
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 @@ -379,12 +379,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 c10a7be

Please sign in to comment.