In some tests call to WaitFor misses timeout
@@ -632,7 +632,7 @@ var _ = Describe("VMIlifecycle", func() {
By("Deleting the VirtualMachineInstance")
_, err = virtClient.RestClient().Delete().Resource("virtualmachineinstances").Namespace(vmi.GetObjectMeta().GetNamespace()).Name(vmi.GetObjectMeta().GetName()).Do().Get()
Expect(err).To(BeNil())
- tests.NewObjectEventWatcher(vmi).SinceWatchedObjectResourceVersion().WaitFor(tests.NormalEvent, v1.Deleted)
+ tests.NewObjectEventWatcher(vmi).Timeout(60*time.Second).SinceWatchedObjectResourceVersion().WaitFor(tests.NormalEvent, v1.Deleted)
tests.WaitForVirtualMachineToDisappearWithTimeout(vmi, 120)
// Check if the stop event was logged
@@ -1034,7 +1034,7 @@ var _ = Describe("VMIlifecycle", func() {
// Delete the VirtualMachineInstance and wait for the confirmation of the delete
By("Deleting the VirtualMachineInstance")
Expect(virtClient.VirtualMachineInstance(vmi.Namespace).Delete(obj.Name, &metav1.DeleteOptions{})).To(Succeed())
- tests.NewObjectEventWatcher(obj).SinceWatchedObjectResourceVersion().WaitFor(tests.NormalEvent, v1.Deleted)
+ tests.NewObjectEventWatcher(obj).Timeout(60*time.Second).SinceWatchedObjectResourceVersion().WaitFor(tests.NormalEvent, v1.Deleted)
// Check if the graceful shutdown was logged
By("Checking that virt-handler logs VirtualMachineInstance graceful shutdown")
