mirror of
https://github.com/prymitive/karma
synced 2026-05-11 03:46:48 +00:00
fix(tests): use 127.0.0.1 instead of localhost
This commit is contained in:
committed by
Łukasz Mierzwa
parent
6413c6ac91
commit
4fe06c8322
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user