This is an automated email from the ASF dual-hosted git repository. lburgazzoli pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 72e6e6c9ceec1eac27947c818c48b4ea1553aa81 Author: nferraro <ni.ferr...@gmail.com> AuthorDate: Fri Jun 28 11:58:45 2019 +0200 fix #692: fix namespace deletion condition --- e2e/test_support.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/e2e/test_support.go b/e2e/test_support.go index 8112dd1..93c2742 100644 --- a/e2e/test_support.go +++ b/e2e/test_support.go @@ -420,8 +420,11 @@ func numPods(ns string) func() int { opts := k8sclient.ListOptions{ Namespace: ns, } - if err := testClient.List(testContext, &opts, &lst); err != nil { - panic(err) + if err := testClient.List(testContext, &opts, &lst); err != nil && k8serrors.IsUnauthorized(err) { + return 0 + } else if err != nil { + log.Error(err, "Error while listing the pods") + return 0 } return len(lst.Items) }