@@ -197,7 +197,8 @@ func TestClusterExtensionInstallRegistryMultipleBundles(t *testing.T) {
197197 t .Log ("When a cluster extension is installed from a catalog" )
198198
199199 clusterExtension , extensionCatalog , sa , ns := TestInit (t )
200- extraCatalog , err := CreateTestCatalog (context .Background (), "extra-test-catalog" , os .Getenv (testCatalogRefEnvVar ))
200+ extraCatalogName := fmt .Sprintf ("extra-test-catalog-%s" , rand .String (8 ))
201+ extraCatalog , err := CreateTestCatalog (context .Background (), extraCatalogName , os .Getenv (testCatalogRefEnvVar ))
201202 require .NoError (t , err )
202203
203204 defer TestCleanup (t , extensionCatalog , clusterExtension , sa , ns )
@@ -238,7 +239,9 @@ func TestClusterExtensionInstallRegistryMultipleBundles(t *testing.T) {
238239 require .NotNil (ct , cond )
239240 require .Equal (ct , metav1 .ConditionTrue , cond .Status )
240241 require .Equal (ct , ocv1 .ReasonRetrying , cond .Reason )
241- require .Contains (ct , cond .Message , "in multiple catalogs with the same priority [extra-test-catalog test-catalog]" )
242+ require .Contains (ct , cond .Message , "in multiple catalogs with the same priority" )
243+ require .Contains (ct , cond .Message , extensionCatalog .Name )
244+ require .Contains (ct , cond .Message , extraCatalog .Name )
242245 }, pollDuration , pollInterval )
243246}
244247
@@ -441,7 +444,7 @@ func TestClusterExtensionInstallReResolvesWhenCatalogIsPatched(t *testing.T) {
441444 // patch imageRef tag on test-catalog image with v2 image
442445 t .Log ("By patching the catalog ImageRef to point to the v2 catalog" )
443446 updatedCatalogImage := fmt .Sprintf ("%s/e2e/test-catalog:v2" , os .Getenv ("CLUSTER_REGISTRY_HOST" ))
444- err := patchTestCatalog (context .Background (), testCatalogName , updatedCatalogImage )
447+ err := patchTestCatalog (context .Background (), extensionCatalog . Name , updatedCatalogImage )
445448 require .NoError (t , err )
446449 require .EventuallyWithT (t , func (ct * assert.CollectT ) {
447450 require .NoError (ct , c .Get (context .Background (), types.NamespacedName {Name : extensionCatalog .Name }, extensionCatalog ))
@@ -474,8 +477,9 @@ func TestClusterExtensionInstallReResolvesWhenNewCatalog(t *testing.T) {
474477 require .NoError (t , err )
475478
476479 // create a test-catalog with latest image tag
480+ catalogName := fmt .Sprintf ("test-catalog-%s" , rand .String (8 ))
477481 latestCatalogImage := fmt .Sprintf ("%s/e2e/test-catalog:latest" , os .Getenv ("CLUSTER_REGISTRY_HOST" ))
478- extensionCatalog , err := CreateTestCatalog (context .Background (), testCatalogName , latestCatalogImage )
482+ extensionCatalog , err := CreateTestCatalog (context .Background (), catalogName , latestCatalogImage )
479483 require .NoError (t , err )
480484 clusterExtensionName := fmt .Sprintf ("clusterextension-%s" , rand .String (8 ))
481485 clusterExtension := & ocv1.ClusterExtension {
0 commit comments