fix(tests): use 127.0.0.1 instead of localhost

This commit is contained in:
Łukasz Mierzwa
2022-09-26 09:19:47 +01:00
committed by Łukasz Mierzwa
parent 6413c6ac91
commit 4fe06c8322
3 changed files with 3 additions and 3 deletions

View File

@@ -134,5 +134,5 @@ level=info msg="Removing PID file" path=karma.pid
-- test.sh --
while [ ! -f karma.pid ]; do sleep 1 ; done
sleep 5
curl -s http://localhost:8083/metrics | grep -vE 'process_|go_info' | perl -pe "s/^([a-zA-Z].+)[ ]([0-9\.\-\+eE]+)$/\1/g" > curl.txt
curl -s http://127.0.0.1:8083/metrics | grep -vE 'process_|go_info' | perl -pe "s/^([a-zA-Z].+)[ ]([0-9\.\-\+eE]+)$/\1/g" > curl.txt
cat karma.pid | xargs kill

View File

@@ -27,6 +27,6 @@ level=info msg="Removing PID file" path=karma.pid
-- test.sh --
while [ ! -f karma.pid ]; do sleep 1 ; done
sleep 1
curl -s -o heap.gz http://localhost:8085/debug/pprof/heap
curl -s -o heap.gz http://127.0.0.1:8085/debug/pprof/heap
cat karma.pid | xargs kill
gzip -d heap.gz || exit 1

View File

@@ -51,7 +51,7 @@ history:
rewrite:
- source: '(.*)'
uri: '$1'
proxy_url: http://localhost:9108
proxy_url: http://127.0.0.1:9108
-- test.sh --
while [ ! -f karma.pid ]; do sleep 1 ; done
sleep 5