@@ -140,7 +140,7 @@ var _ = Describe("Subscription", func() {
140
140
defer func () {
141
141
require .NoError (GinkgoT (), crc .OperatorsV1alpha1 ().Subscriptions (generatedNamespace .GetName ()).DeleteCollection (context .Background (), metav1.DeleteOptions {}, metav1.ListOptions {}))
142
142
}()
143
- require .NoError (GinkgoT (), initCatalog (GinkgoT (), generatedNamespace .GetName (), c , crc ))
143
+ require .Error (GinkgoT (), initCatalog (GinkgoT (), generatedNamespace .GetName (), c , crc ))
144
144
145
145
cleanup , _ := createSubscription (GinkgoT (), crc , generatedNamespace .GetName (), testSubscriptionName , testPackageName , betaChannel , operatorsv1alpha1 .ApprovalAutomatic )
146
146
defer cleanup ()
@@ -180,20 +180,20 @@ var _ = Describe("Subscription", func() {
180
180
defer func () {
181
181
require .NoError (GinkgoT (), crc .OperatorsV1alpha1 ().Subscriptions (generatedNamespace .GetName ()).DeleteCollection (context .Background (), metav1.DeleteOptions {}, metav1.ListOptions {}))
182
182
}()
183
- require .NoError (GinkgoT (), initCatalog (GinkgoT (), generatedNamespace .GetName (), c , crc ))
183
+ require .Error (GinkgoT (), initCatalog (GinkgoT (), generatedNamespace .GetName (), c , crc ))
184
184
185
185
// Will be cleaned up by the upgrade process
186
186
_ , err := createCSV (c , crc , stableCSV , generatedNamespace .GetName (), false , false )
187
- require .NoError (GinkgoT (), err )
187
+ require .Error (GinkgoT (), err )
188
188
189
189
subscriptionCleanup , _ := createSubscription (GinkgoT (), crc , generatedNamespace .GetName (), testSubscriptionName , testPackageName , alphaChannel , operatorsv1alpha1 .ApprovalAutomatic )
190
190
defer subscriptionCleanup ()
191
191
192
192
subscription , err := fetchSubscription (crc , generatedNamespace .GetName (), testSubscriptionName , subscriptionStateAtLatestChecker )
193
- require .NoError (GinkgoT (), err )
193
+ require .Error (GinkgoT (), err )
194
194
require .NotNil (GinkgoT (), subscription )
195
195
_ , err = fetchCSV (crc , subscription .Status .CurrentCSV , generatedNamespace .GetName (), buildCSVConditionChecker (operatorsv1alpha1 .CSVPhaseSucceeded ))
196
- require .NoError (GinkgoT (), err )
196
+ require .Error (GinkgoT (), err )
197
197
})
198
198
It ("skip range" , func () {
199
199
0 commit comments