Skip to content

Commit

Permalink
fix: adjusted expect namespace watcher
Browse files Browse the repository at this point in the history
  • Loading branch information
paulobressan committed Sep 25, 2024
1 parent 8058fab commit 892cd21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/expect
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ NAMESPACE=$(echo $OUTPUT | jq -r '.namespace')
# Check if namespace is created
echo "Checking if namespace $NAMESPACE exists"
for attempt in $(seq 1 120); do
if kubectl get namespace "$NAMESPACE" &> /dev/null; then
if kubectl get namespace "prj-$NAMESPACE" &> /dev/null; then
echo "Namespace $NAMESPACE exists."
break
else
Expand All @@ -107,7 +107,7 @@ for attempt in $(seq 1 120); do
fi
done

if ! kubectl get namespace "$NAMESPACE" &> /dev/null; then
if ! kubectl get namespace "prj-$NAMESPACE" &> /dev/null; then
echo "Error: Namespace $NAMESPACE not found after 120 attempts."
exit 1
fi
Expand Down

0 comments on commit 892cd21

Please sign in to comment.