Skip to content

Commit c8d7d52

Browse files
cathal-baileymdujava
authored andcommitted
Fix test_metric_worker to kill only one worker process instead of all
1 parent d7179cc commit c8d7d52

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

testsuite/tests/prometheus/apicast/test_metric_worker_starts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def test_metric_worker(prometheus, production_gateway):
3636
"for k in /proc/[0-9]*;"
3737
'do grep -i "^nginx: worker process" $k/cmdline 2>&1 >/dev/null;'
3838
"if [[ $? == 0 ]]; then echo ${k##*/}; fi;"
39-
"done | xargs kill -9"
39+
"done | head -1 | xargs kill -9"
4040
)
4141
ocp.do_action("exec", ["-ti", pod_name, "--", "/bin/sh", "-c", kill_worker])
4242

0 commit comments

Comments
 (0)