This is an automated email from the ASF dual-hosted git repository.

tsato pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/main by this push:
     new 67ec32257 fix(e2e): stabilise kustomize uninstall tests
67ec32257 is described below

commit 67ec32257b7fb9964c8a5373a03fcb941b1e876c
Author: Tadayoshi Sato <sato.tadayo...@gmail.com>
AuthorDate: Fri Dec 23 11:25:31 2022 +0900

    fix(e2e): stabilise kustomize uninstall tests
---
 e2e/namespace/install/kustomize/uninstall_test.go | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/e2e/namespace/install/kustomize/uninstall_test.go 
b/e2e/namespace/install/kustomize/uninstall_test.go
index 3b89c9500..002ce3a7c 100644
--- a/e2e/namespace/install/kustomize/uninstall_test.go
+++ b/e2e/namespace/install/kustomize/uninstall_test.go
@@ -27,6 +27,8 @@ import (
        "os"
        "testing"
 
+       corev1 "k8s.io/api/core/v1"
+
        . "github.com/apache/camel-k/e2e/support"
        testutil "github.com/apache/camel-k/e2e/support/util"
        . "github.com/onsi/gomega"
@@ -50,6 +52,7 @@ func TestUninstallBasic(t *testing.T) {
                // Skip default kamelets installation for faster test runs
                ExpectExecSucceed(t, Make("operator", namespaceArg, 
"INSTALL_DEFAULT_KAMELETS=false"))
                Eventually(OperatorPod(ns)).ShouldNot(BeNil())
+               Eventually(OperatorPodPhase(ns), 
TestTimeoutMedium).Should(Equal(corev1.PodRunning))
 
                // Do uninstall
                ExpectExecSucceed(t, Make("uninstall", namespaceArg))
@@ -90,6 +93,7 @@ func TestUninstallGlobal(t *testing.T) {
                // Skip default kamelets installation for faster test runs
                ExpectExecSucceed(t, Make("operator", namespaceArg, 
"GLOBAL=true", "INSTALL_DEFAULT_KAMELETS=false"))
                Eventually(OperatorPod(ns)).ShouldNot(BeNil())
+               Eventually(OperatorPodPhase(ns), 
TestTimeoutMedium).Should(Equal(corev1.PodRunning))
 
                // Do uninstall
                ExpectExecSucceed(t, Make("uninstall", namespaceArg))

Reply via email to