File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ nginx_config:
195195 access_log_format: '\"\$ upstream_scheme://\$ upstream_host\" \$ ssl_server_name'
196196" > conf/config.yaml
197197# 4. Start APISIX
198- sudo -E make run
198+ make run
199199sleep 2
200200
201201admin_key=$( yq ' .deployment.admin.admin_key[0].key' conf/config.yaml | sed ' s/"//g' )
@@ -207,14 +207,14 @@ sleep 4
207207tail -n 2 logs/access.log > output.log
208208
209209# APISIX
210- if ! grep ' "https://localhost :9180" -' output.log; then
210+ if ! grep ' "https://127.0.0.1 :9180" -' output.log; then
211211 echo " failed: should find upstream scheme"
212212 cat output.log
213213 exit 1
214214fi
215215
216216# admin
217- if ! grep ' "http://localhost :9180" localhost' output.log; then
217+ if ! grep ' "http://127.0.0.1 :9180" localhost' output.log; then
218218 echo " failed: should find upstream scheme"
219219 cat output.log
220220 exit 1
You can’t perform that action at this time.
0 commit comments