Skip to content

Commit

Permalink
fix(test/cli): add set +e when wait for control plane (#10628)
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeyDluffy6017 authored Dec 12, 2023
1 parent e6afb6f commit 919427b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions t/cli/test_control.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ make run

sleep 0.1

set +e
times=1
code=000
while [ $code -eq 000 ] && [ $times -lt 10 ]
Expand All @@ -44,6 +45,7 @@ do
sleep 0.2
times=$(($times+1))
done
set -e

if [ ! $code -eq 200 ]; then
echo "failed: access control server"
Expand Down Expand Up @@ -77,6 +79,7 @@ make run

sleep 0.1

set +e
times=1
code=000
while [ $code -eq 000 ] && [ $times -lt 10 ]
Expand All @@ -85,6 +88,7 @@ do
sleep 0.2
times=$(($times+1))
done
set -e

if [ ! $code -eq 200 ]; then
echo "failed: access control server"
Expand All @@ -111,6 +115,7 @@ make run

sleep 0.1

set +e
times=1
code=000
while [ $code -eq 000 ] && [ $times -lt 10 ]
Expand All @@ -119,6 +124,7 @@ do
sleep 0.2
times=$(($times+1))
done
set -e

if [ ! $code -eq 200 ]; then
echo "failed: access control server"
Expand Down

0 comments on commit 919427b

Please sign in to comment.