Skip to content

Commit

Permalink
test: Wait longer after KubeVirt is undeployed
Browse files Browse the repository at this point in the history
I've seen races here on my own machine when running the tests.
Once I log back in, everything is in the expected state, it just
takes longer sometimes to actually undeploy KubeVirt

Closes #9701
  • Loading branch information
stefwalter authored and martinpitt committed Jul 20, 2018
1 parent fdc5695 commit da3ef46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/verify/check-openshift
Original file line number Diff line number Diff line change
Expand Up @@ -433,9 +433,9 @@ LABEL io.projectatomic.nulecule.atomicappversion="0.1.11" \
o.execute("oc delete -f /kubevirt/kubevirt.yaml || true 2> /dev/null")
o.execute("oc delete --force --grace-period=0 project kubevirt")

wait(lambda: "virt-api" not in o.execute("oc get pods --all-namespaces"))
wait(lambda: "virt-controller" not in o.execute("oc get pods --all-namespaces"))
wait(lambda: "virt-handler" not in o.execute("oc get pods --all-namespaces"))
wait(lambda: "virt-api" not in o.execute("oc get pods --all-namespaces"), delay=5)
wait(lambda: "virt-controller" not in o.execute("oc get pods --all-namespaces"), delay=5)
wait(lambda: "virt-handler" not in o.execute("oc get pods --all-namespaces"), delay=5)

self.login_and_go("/kubernetes")

Expand Down

0 comments on commit da3ef46

Please sign in to comment.