Wait for operator namespace deletion on 3.11
Since 3.11 does not remove namespaces immediately, we need to wait
for namespace removal in order to proceed with further tests
@@ -523,6 +523,9 @@ destroy() {
oc delete --grace-period=0 --force=true project "$namespace" &
if [ -n "$OPERATOR_NS" ]; then
oc delete --grace-period=0 --force=true project "$OPERATOR_NS" &
+ if [ "${OPENSHIFT}" == "3.11" ]; then
+ wait_for_delete "project/$OPERATOR_NS" # 3.11 Does not delete namespace immediately, let's wait at least 120 seconds till the next step
+ fi
fi
else
kubectl_bin delete --grace-period=0 --force=true namespace "$namespace" &
