You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2021/11/05 16:00:22 UTC

[camel-k] 02/02: chore: fix test definition

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

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

commit 1e0cdb8aaf668de55e11c1365ea732f6257e1ff8
Author: nicolaferraro <ni...@gmail.com>
AuthorDate: Fri Nov 5 11:22:51 2021 +0100

    chore: fix test definition
---
 e2e/common/integration_fail_test.go | 1 +
 e2e/common/kamelet_binding_test.go  | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/e2e/common/integration_fail_test.go b/e2e/common/integration_fail_test.go
index ee454bc..4d4942c 100644
--- a/e2e/common/integration_fail_test.go
+++ b/e2e/common/integration_fail_test.go
@@ -39,6 +39,7 @@ func TestBadRouteIntegration(t *testing.T) {
 		Expect(Kamel("install", "-n", ns).Execute()).To(Succeed())
 
 		t.Run("run bad java route", func(t *testing.T) {
+			RegisterTestingT(t)
 			name := "bad-route"
 			Expect(Kamel("run", "-n", ns, "files/BadRoute.java", "--name", name).Execute()).To(Succeed())
 			Eventually(IntegrationPodPhase(ns, name), TestTimeoutMedium).Should(Equal(corev1.PodRunning))
diff --git a/e2e/common/kamelet_binding_test.go b/e2e/common/kamelet_binding_test.go
index 511b251..f8519d1 100644
--- a/e2e/common/kamelet_binding_test.go
+++ b/e2e/common/kamelet_binding_test.go
@@ -65,6 +65,7 @@ func TestErrorHandler(t *testing.T) {
 				}}}
 
 		t.Run("throw error test", func(t *testing.T) {
+			RegisterTestingT(t)
 
 			Expect(BindKameletToWithErrorHandler(ns, "throw-error-binding", from, to, map[string]string{"message": "throw Error"}, map[string]string{"loggerName": "integrationLogger"}, errorHandler)()).To(Succeed())
 
@@ -75,6 +76,7 @@ func TestErrorHandler(t *testing.T) {
 		})
 
 		t.Run("don't throw error test", func(t *testing.T) {
+			RegisterTestingT(t)
 
 			Expect(BindKameletToWithErrorHandler(ns, "no-error-binding", from, to, map[string]string{"message": "true"}, map[string]string{"loggerName": "integrationLogger"}, errorHandler)()).To(Succeed())