Skip to content

Commit 524bd14

Browse files
committed
use ip instead of localhost
1 parent 97db648 commit 524bd14

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

t/cli/test_access_log.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
199199
sleep 2
200200

201201
admin_key=$(yq '.deployment.admin.admin_key[0].key' conf/config.yaml | sed 's/"//g')
@@ -207,14 +207,14 @@ sleep 4
207207
tail -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
214214
fi
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

0 commit comments

Comments
 (0)