diff --git a/tests/dataimportcron_test.go b/tests/dataimportcron_test.go index 9f97b02b12..a284a21731 100644 --- a/tests/dataimportcron_test.go +++ b/tests/dataimportcron_test.go @@ -714,11 +714,9 @@ var _ = Describe("DataImportCron", func() { // Now simulate an upgrade, where a new CDI version has identified // more storage types that scale better with snapshots configureStorageProfileResultingFormat(cdiv1.DataImportCronSourceFormatSnapshot) - // Switches to not ready because the snapshot wasn't created yet - waitForConditions(corev1.ConditionFalse, corev1.ConditionFalse) - waitForConditions(corev1.ConditionFalse, corev1.ConditionTrue) // Check snapshot now exists and PVC is gone currentSource := verifySourceReady(cdiv1.DataImportCronSourceFormatSnapshot, currentImportDv) + waitForConditions(corev1.ConditionFalse, corev1.ConditionTrue) // DataSource is updated to point to a snapshot dataSource, err := f.CdiClient.CdiV1beta1().DataSources(ns).Get(context.TODO(), cron.Spec.ManagedDataSource, metav1.GetOptions{}) Expect(err).ToNot(HaveOccurred())