This is an automated email from the ASF dual-hosted git repository.
monkeydluffy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new 919427b2b fix(test/cli): add `set +e` when wait for control plane
(#10628)
919427b2b is described below
commit 919427b2b57272b071970a782555eb345b71f34e
Author: Liu Wei <[email protected]>
AuthorDate: Tue Dec 12 10:09:02 2023 +0800
fix(test/cli): add `set +e` when wait for control plane (#10628)
---
t/cli/test_control.sh | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/t/cli/test_control.sh b/t/cli/test_control.sh
index 96ac3c763..487118505 100755
--- a/t/cli/test_control.sh
+++ b/t/cli/test_control.sh
@@ -36,6 +36,7 @@ make run
sleep 0.1
+set +e
times=1
code=000
while [ $code -eq 000 ] && [ $times -lt 10 ]
@@ -44,6 +45,7 @@ do
sleep 0.2
times=$(($times+1))
done
+set -e
if [ ! $code -eq 200 ]; then
echo "failed: access control server"
@@ -77,6 +79,7 @@ make run
sleep 0.1
+set +e
times=1
code=000
while [ $code -eq 000 ] && [ $times -lt 10 ]
@@ -85,6 +88,7 @@ do
sleep 0.2
times=$(($times+1))
done
+set -e
if [ ! $code -eq 200 ]; then
echo "failed: access control server"
@@ -111,6 +115,7 @@ make run
sleep 0.1
+set +e
times=1
code=000
while [ $code -eq 000 ] && [ $times -lt 10 ]
@@ -119,6 +124,7 @@ do
sleep 0.2
times=$(($times+1))
done
+set -e
if [ ! $code -eq 200 ]; then
echo "failed: access control server"