Skip to content

Commit

Permalink
Increase timeout while waiting for vault server to be ready (#2709)
Browse files Browse the repository at this point in the history
increase timeout while waiting for server to be ready and fix require.Equal check
  • Loading branch information
curtbushko authored and absolutelightning committed Aug 4, 2023
1 parent 76f29aa commit 720d941
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 @@ -414,12 +414,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 720d941

Please sign in to comment.