metrics: Improve latency test cleanup

This PR improves the latency test cleanup in order to avoid random
failures of leaving the pods.

Fixes #9418

Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
This commit is contained in:
Gabriela Cervantes 2024-04-04 20:43:53 +00:00
parent aae2679f09
commit 8e5d401be0

View File

@ -22,6 +22,10 @@ function latency_cleanup() {
info "Latency test cleanup"
kubectl delete -f "${SCRIPT_PATH}/latency-server.yaml"
kubectl delete -f "${SCRIPT_PATH}/latency-client.yaml"
kubectl delete pods "${client_pod_name}" "${server_pod_name}"
kill_kata_components && sleep 1
check_processes
info "End of latency test"
}
function main() {