Fix waiting for test pods to become ready
Signed-off-by: James Munnelly <james@munnelly.eu>
This commit is contained in:
parent
e6bc9edbbd
commit
b60138c082
@ -268,7 +268,7 @@ func (t *Tiller) Provision() error {
|
||||
return fmt.Errorf("failed to create tiller pod within 10s")
|
||||
}
|
||||
retries--
|
||||
time.Sleep(2)
|
||||
time.Sleep(time.Second * 2)
|
||||
continue
|
||||
}
|
||||
tillerPod := pods.Items[0]
|
||||
@ -276,7 +276,7 @@ func (t *Tiller) Provision() error {
|
||||
// it a bit longer.
|
||||
if len(tillerPod.Status.ContainerStatuses) == 0 || !tillerPod.Status.ContainerStatuses[0].Ready {
|
||||
retries--
|
||||
time.Sleep(5)
|
||||
time.Sleep(time.Second * 5)
|
||||
continue
|
||||
}
|
||||
break
|
||||
|
||||
@ -151,7 +151,7 @@ func (v *Vault) Provision() error {
|
||||
return fmt.Errorf("failed to create vault pod within 10s")
|
||||
}
|
||||
retries--
|
||||
time.Sleep(2)
|
||||
time.Sleep(time.Second * 2)
|
||||
continue
|
||||
}
|
||||
vaultPod := pods.Items[0]
|
||||
@ -159,7 +159,7 @@ func (v *Vault) Provision() error {
|
||||
// it a bit longer.
|
||||
if len(vaultPod.Status.ContainerStatuses) == 0 || !vaultPod.Status.ContainerStatuses[0].Ready {
|
||||
retries--
|
||||
time.Sleep(5)
|
||||
time.Sleep(time.Second * 5)
|
||||
continue
|
||||
}
|
||||
v.details.PodName = vaultPod.Name
|
||||
|
||||
Loading…
Reference in New Issue
Block a user