File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import (
20
20
"github.com/operator-framework/operator-lifecycle-manager/pkg/api/apis/operators/v1alpha1"
21
21
"github.com/operator-framework/operator-lifecycle-manager/pkg/controller/registry"
22
22
"github.com/operator-framework/operator-lifecycle-manager/pkg/lib/operatorclient"
23
+ "github.com/operator-framework/operator-lifecycle-manager/pkg/lib/ownerutil"
23
24
)
24
25
25
26
func TestCatalogLoadingBetweenRestarts (t * testing.T ) {
@@ -222,8 +223,14 @@ func TestConfigMapUpdateTriggersRegistryPodRollout(t *testing.T) {
222
223
require .NoError (t , err )
223
224
224
225
ipList , err := crc .OperatorsV1alpha1 ().InstallPlans (testNamespace ).List (metav1.ListOptions {})
226
+ ipCount := 0
227
+ for _ , ip := range ipList .Items {
228
+ if ownerutil .IsOwnedBy (& ip , subscription ) {
229
+ ipCount += 1
230
+ }
231
+ }
225
232
require .NoError (t , err )
226
- require .Equal (t , 1 , len ( ipList . Items ) )
233
+ require .Equal (t , 1 , ipCount )
227
234
}
228
235
229
236
func TestConfigMapReplaceTriggersRegistryPodRollout (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments