You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by ma...@apache.org on 2022/03/01 13:00:40 UTC

[dubbo-go-pixiu] 01/01: fix triple samples ci

This is an automated email from the ASF dual-hosted git repository.

mark4z pushed a commit to branch dev-loadbalancer
in repository https://gitbox.apache.org/repos/asf/dubbo-go-pixiu.git

commit 598bf1c628c3b6bf958a2418d11bf18811f83cc3
Author: mark4z <ma...@gmail.com>
AuthorDate: Tue Mar 1 20:58:13 2022 +0800

    fix triple samples ci
---
 samples/dubbogo/simple/triple/docker/docker-health-check.sh | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/samples/dubbogo/simple/triple/docker/docker-health-check.sh b/samples/dubbogo/simple/triple/docker/docker-health-check.sh
index 6e20e90..06132bb 100644
--- a/samples/dubbogo/simple/triple/docker/docker-health-check.sh
+++ b/samples/dubbogo/simple/triple/docker/docker-health-check.sh
@@ -15,6 +15,10 @@
 #  limitations under the License.
 #
 
-sleep 5
-curl http://127.0.0.1:8848/nacos/v1/console/health/liveness
-sleep 10
\ No newline at end of file
+for i in {1..6}; do
+  if [[ $(curl http://127.0.0.1:8848/nacos/v1/console/health/liveness) =~ "OK" ]]; then
+    break
+  else
+    sleep 5
+  fi
+done