Skip to content

Commit f912371

Browse files
committed
hack/tests: fix subcommand test
1 parent 2150d72 commit f912371

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hack/tests/test-subcommand.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ operator-sdk test local . --global-manifest deploy/crds/cache_v1alpha1_memcached
1111
# test operator-sdk test local single namespace mode
1212
kubectl create namespace test-memcached
1313
# we use the test-memcached namespace for all future tests, so we only need to set this trap once
14-
trap_add 'kubectl delete namespace test-memcached' EXIT
14+
trap_add 'kubectl delete namespace test-memcached || true' EXIT
1515
operator-sdk test local . --namespace=test-memcached
1616
kubectl delete namespace test-memcached
1717
# test operator in no-setup mode

0 commit comments

Comments
 (0)