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

junouyang pushed a commit to branch chore/ci-minio-healthcheck
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git


The following commit(s) were added to refs/heads/chore/ci-minio-healthcheck by 
this push:
     new e6f5352de chore(ci): fix code
e6f5352de is described below

commit e6f5352de133c0f5700756e301f8fe71d355739e
Author: owl <[email protected]>
AuthorDate: Tue Aug 22 02:49:26 2023 +0800

    chore(ci): fix code
---
 .github/workflows/service_test_s3.yml | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/.github/workflows/service_test_s3.yml 
b/.github/workflows/service_test_s3.yml
index 196733d9a..da8c931bd 100644
--- a/.github/workflows/service_test_s3.yml
+++ b/.github/workflows/service_test_s3.yml
@@ -149,10 +149,7 @@ jobs:
           which curl
           while :; do
             echo "waiting minio docker to be ready"
-            res="$(curl -I http://127.0.0.1:9000/minio/health/live 2>/dev/null 
| head -n 1 | cut -d$' ' -f2)"
-            if [ "$res" == "200" ]; then
-              break
-            fi
+            [[ "$(curl -I http://127.0.0.1:9000/minio/health/live 2>/dev/null 
| head -n 1 | cut -d$' ' -f2)" == "200" ]] && break
             sleep 1
           done
       - name: Setup test bucket

Reply via email to