Skip to content

Commit e563402

Browse files
committed
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.
1 parent 1eb2acc commit e563402

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/cmd/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ run_kubectl_run_tests() {
3636
# Clean up
3737
kubectl delete jobs pi "${kube_flags[@]}"
3838
# Post-condition: no pods exist.
39-
kube::test::get_object_assert pods "{{range.items}}{{$id_field}}:{{end}}" ''
39+
kube::test::wait_object_assert pods "{{range.items}}{{$id_field}}:{{end}}" ''
4040

4141
# Pre-Condition: no Deployment exists
4242
kube::test::get_object_assert deployment "{{range.items}}{{$id_field}}:{{end}}" ''

0 commit comments

Comments
 (0)