Commit e5634027 authored by Aaron Crickenberger's avatar Aaron Crickenberger

Fix test-cmd kubectl_run flake

It is unrealistic to expect a cascading delete to immediately take effect. Somehow this test got away with it for a while, but we have finally reached a point where apiserver performance has changed just enough to expsoe this flaky expectation.
parent 1eb2acca
......@@ -36,7 +36,7 @@ run_kubectl_run_tests() {
# Clean up
kubectl delete jobs pi "${kube_flags[@]}"
# Post-condition: no pods exist.
kube::test::get_object_assert pods "{{range.items}}{{$id_field}}:{{end}}" ''
kube::test::wait_object_assert pods "{{range.items}}{{$id_field}}:{{end}}" ''
# Pre-Condition: no Deployment exists
kube::test::get_object_assert deployment "{{range.items}}{{$id_field}}:{{end}}" ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment