e2e: node: wait for kvm plugin removal

we need to make sure the system state is completely cleaned up
again, to avoid to mess up with the shared node state, before
we transition from one test to another.

Signed-off-by: Francesco Romani <fromani@redhat.com>
This commit is contained in:
Francesco Romani 2021-11-09 11:43:55 +01:00
parent 4b46c3a0d2
commit 14105c09fb

View File

@ -849,6 +849,7 @@ func teardownKubeVirtDevicePluginOrFail(f *framework.Framework, pod *v1.Pod) {
err := f.ClientSet.CoreV1().Pods(pod.Namespace).Delete(context.TODO(), pod.Name, deleteOptions)
framework.ExpectNoError(err)
waitForAllContainerRemoval(pod.Name, pod.Namespace)
}
func findKubeVirtResource(node *v1.Node) int64 {