mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-15 22:53:43 +00:00
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:
parent
aae2679f09
commit
8e5d401be0
@ -22,6 +22,10 @@ function latency_cleanup() {
|
|||||||
info "Latency test cleanup"
|
info "Latency test cleanup"
|
||||||
kubectl delete -f "${SCRIPT_PATH}/latency-server.yaml"
|
kubectl delete -f "${SCRIPT_PATH}/latency-server.yaml"
|
||||||
kubectl delete -f "${SCRIPT_PATH}/latency-client.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() {
|
function main() {
|
||||||
|
Loading…
Reference in New Issue
Block a user