Skip to content

Commit

Permalink
fix(ci): use a more descriptive grep argument
Browse files Browse the repository at this point in the history
Signed-off-by: Niladri Halder <[email protected]>
  • Loading branch information
niladrih committed Jul 26, 2023
1 parent 6e02087 commit 997bf3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/suite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ verify_controller_quorum() {
verify_go_routine_leak() {
echo "---------------------Verify goroutine leak-------------------------"
i=0
no_of_goroutine=$(curl http://$2:9502/debug/pprof/goroutine?debug=1 | grep goroutine | awk '{ print $4}')
no_of_goroutine=$(curl http://$2:9502/debug/pprof/goroutine?debug=1 | grep "goroutine profile: total" | awk '{ print $4}')
passed=0
req_cnt=0
while [ "$i" != 30 ]; do
Expand All @@ -280,7 +280,7 @@ verify_go_routine_leak() {
sleep 2
done
wait
new_no_of_goroutine=$(curl http://$2:9502/debug/pprof/goroutine?debug=1 | grep goroutine | awk '{ print $4}')
new_no_of_goroutine=$(curl http://$2:9502/debug/pprof/goroutine?debug=1 | grep "goroutine profile: total" | awk '{ print $4}')
old=`expr $no_of_goroutine + 3`
if [ $new_no_of_goroutine -lt $old ]; then
echo "Verify_go_routine for " $1 "--passed"
Expand Down

0 comments on commit 997bf3c

Please sign in to comment.