Skip to content

Commit 739aa60

Browse files
authored
Fix readiness check (#57)
Readiness check should happen before tests are executed. Otherwise the fails if there are tests and test pods match the label selectors that identify pods. Since test pods have status Completed, they cause the readiness check to fail. Signed-off-by: Reinhard Nägele <[email protected]>
1 parent b1c8894 commit 739aa60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/tool/helm.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ func (h Helm) InstallWithValues(chart string, valuesFile string, namespace strin
6868
return err
6969
}
7070

71-
if err := h.exec.RunProcess("helm", "test", release, h.extraArgs); err != nil {
71+
if err := h.kubectl.WaitForDeployments(namespace); err != nil {
7272
return err
7373
}
7474

75-
return h.kubectl.WaitForDeployments(namespace)
75+
return h.exec.RunProcess("helm", "test", release, h.extraArgs)
7676
}
7777

7878
func (h Helm) DeleteRelease(release string) {

0 commit comments

Comments
 (0)