mirror of
https://github.com/prymitive/karma
synced 2026-05-05 03:16:51 +00:00
fix(tests): use better regex for metrics tests
This commit is contained in:
committed by
Łukasz Mierzwa
parent
da6701e30c
commit
568694bbf6
@@ -133,5 +133,5 @@ level=info msg="Removing PID file" path=karma.pid
|
||||
|
||||
while [ ! -f karma.pid ]; do sleep 1 ; done
|
||||
sleep 5
|
||||
curl -s http://localhost:8083/metrics | grep -vE 'process_|go_info' | sed -E s_' ([0-9]+|[0-9]+\.[0-9]+|[0-9]+\.[0-9]+e(\+|\-)[0-9]+)$'_''_g > curl.txt
|
||||
curl -s http://localhost: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
|
||||
|
||||
Reference in New Issue
Block a user