@@ -532,7 +532,7 @@ func TestCreateInstallPlanWithPreExistingCRDOwners(t *testing.T) {
532
532
fetchedInstallPlan , err := fetchInstallPlan (t , crc , installPlanName , completeOrFailedFunc )
533
533
require .NoError (t , err )
534
534
t .Logf ("Install plan %s fetched with status %s" , fetchedInstallPlan .GetName (), fetchedInstallPlan .Status .Phase )
535
- require .True (t , completeOrFailedFunc ( fetchedInstallPlan ) )
535
+ require .Equal (t , v1alpha1 . InstallPlanPhaseComplete , fetchedInstallPlan . Status . Phase )
536
536
537
537
// Ensure that the desired resources have been created
538
538
expectedSteps := map [registry.ResourceKey ]struct {}{
@@ -561,13 +561,12 @@ func TestCreateInstallPlanWithPreExistingCRDOwners(t *testing.T) {
561
561
require .Equal (t , 0 , len (expectedSteps ), "Actual resource steps do not match expected" )
562
562
563
563
// Update the subscription resource to point to the beta CSV
564
- err = crc .OperatorsV1alpha1 ().Subscriptions (testNamespace ).Delete ( subscriptionName , metav1 .NewDeleteOptions (0 ))
564
+ err = crc .OperatorsV1alpha1 ().Subscriptions (testNamespace ).DeleteCollection ( metav1 .NewDeleteOptions (0 ), metav1. ListOptions {} )
565
565
require .NoError (t , err )
566
566
567
567
// existing cleanup should remove this
568
568
createSubscriptionForCatalog (t , crc , testNamespace , subscriptionName , mainCatalogSourceName , mainPackageName , betaChannel , v1alpha1 .ApprovalAutomatic )
569
569
570
- // time.Sleep(5 * time.Minute)
571
570
subscription , err = fetchSubscription (t , crc , testNamespace , subscriptionName , subscriptionHasInstallPlanChecker )
572
571
require .NoError (t , err )
573
572
require .NotNil (t , subscription )
0 commit comments