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

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

commit 0c273e369f6ffbe91c446a24bdd56da8402b6f5d
Author: Antonin Stefanutti <anto...@stefanutti.fr>
AuthorDate: Fri Feb 19 09:32:12 2021 +0100

    fix(e2e): Clean-up namespace after kamel run tests
---
 e2e/common/run_test.go | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/e2e/common/run_test.go b/e2e/common/run_test.go
index 78e60a2..de43ee6 100644
--- a/e2e/common/run_test.go
+++ b/e2e/common/run_test.go
@@ -24,13 +24,15 @@ package common
 import (
        "testing"
 
-       . "github.com/apache/camel-k/e2e/support"
-       camelv1 "github.com/apache/camel-k/pkg/apis/camel/v1"
        . "github.com/onsi/gomega"
+
        v1 "k8s.io/api/core/v1"
+
+       . "github.com/apache/camel-k/e2e/support"
+       camelv1 "github.com/apache/camel-k/pkg/apis/camel/v1"
 )
 
-func TestRunExamplesFromGitHUB(t *testing.T) {
+func TestRunExamplesFromGitHub(t *testing.T) {
        WithNewTestNamespace(t, func(ns string) {
                Expect(Kamel("install", "-n", ns).Execute()).Should(BeNil())
 
@@ -73,5 +75,8 @@ func TestRunExamplesFromGitHUB(t *testing.T) {
                        Eventually(IntegrationLogs(ns, name), 
TestTimeoutShort).Should(ContainSubstring("Tick!"))
                        Expect(Kamel("delete", "--all", "-n", 
ns).Execute()).Should(BeNil())
                })
+
+               // Cleanup
+               Expect(Kamel("delete", "--all", "-n", 
ns).Execute()).Should(BeNil())
        })
 }

Reply via email to