Skip to content

Commit

Permalink
Wait for clone to succeed before checking MD5. (#1617)
Browse files Browse the repository at this point in the history
If the verifier runs first, it seems to crash repeatedly and
never lets the clone proceed, hitting a timeout.

Signed-off-by: Maya Rashish <mrashish@redhat.com>

Co-authored-by: Maya Rashish <mrashish@redhat.com>
  • Loading branch information
kubevirt-bot and maya-r committed Jan 28, 2021
1 parent 3c66d5a commit 564911c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/cloner_test.go
Expand Up @@ -92,8 +92,8 @@ var _ = Describe("all clone tests", func() {

targetPvc, err := utils.WaitForPVC(f.K8sClient, targetDataVolume.Namespace, targetDataVolume.Name)
Expect(err).ToNot(HaveOccurred())
fmt.Fprintf(GinkgoWriter, "INFO: wait for PVC claim phase: %s\n", targetPvc.Name)
utils.WaitForPersistentVolumeClaimPhase(f.K8sClient, f.Namespace.Name, v1.ClaimBound, targetPvc.Name)
fmt.Fprintf(GinkgoWriter, "INFO: wait for target DV phase Succeeded: %s\n", targetPvc.Name)
utils.WaitForDataVolumePhaseWithTimeout(f.CdiClient, f.Namespace.Name, cdiv1.Succeeded, targetDV.Name, 3*90*time.Second)
sourcePvcDiskGroup, err := f.GetDiskGroup(f.Namespace, pvc, true)
fmt.Fprintf(GinkgoWriter, "INFO: %s\n", sourcePvcDiskGroup)
Expect(err).ToNot(HaveOccurred())
Expand Down

0 comments on commit 564911c

Please sign in to comment.