Просмотр исходного кода

ci: change localhost to 127.0.0.1 for support new curl version

zhanghongtong 4 лет назад
Родитель
Сommit
670281a0fa
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      .ci/build_packages/tests.sh

+ 3 - 3
.ci/build_packages/tests.sh

@@ -53,7 +53,7 @@ emqx_test(){
                     exit 1
                     exit 1
                 fi
                 fi
                 IDLE_TIME=0
                 IDLE_TIME=0
-                while ! curl http://localhost:18083/api/v5/status >/dev/null 2>&1; do
+                while ! curl http://127.0.0.1:18083/api/v5/status >/dev/null 2>&1; do
                     if [ $IDLE_TIME -gt 10 ]
                     if [ $IDLE_TIME -gt 10 ]
                     then
                     then
                         echo "emqx running error"
                         echo "emqx running error"
@@ -155,7 +155,7 @@ EOF
         exit 1
         exit 1
     fi
     fi
     IDLE_TIME=0
     IDLE_TIME=0
-    while ! curl http://localhost:18083/api/v5/status >/dev/null 2>&1; do
+    while ! curl http://127.0.0.1:18083/api/v5/status >/dev/null 2>&1; do
         if [ $IDLE_TIME -gt 10 ]
         if [ $IDLE_TIME -gt 10 ]
         then
         then
             echo "emqx running error"
             echo "emqx running error"
@@ -184,7 +184,7 @@ EOF
             exit 1
             exit 1
         fi
         fi
         IDLE_TIME=0
         IDLE_TIME=0
-        while ! curl http://localhost:18083/api/v5/status >/dev/null 2>&1; do
+        while ! curl http://127.0.0.1:18083/api/v5/status >/dev/null 2>&1; do
             if [ $IDLE_TIME -gt 10 ]
             if [ $IDLE_TIME -gt 10 ]
             then
             then
                 echo "emqx service error"
                 echo "emqx service error"