Skip to content

Commit

Permalink
Update cluster_extension_install_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
rashmi43 authored Oct 8, 2024
1 parent fdf7e9d commit 16e12c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/cluster_extension_install_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,10 @@ func testInit(t *testing.T) (*ocv1alpha1.ClusterExtension, *catalogd.ClusterCata
}

func testCleanup(t *testing.T, cat *catalogd.ClusterCatalog, clusterExtension *ocv1alpha1.ClusterExtension, sa *corev1.ServiceAccount) {
require.NoError(t, c.Delete(context.Background(), cat))
require.NoError(t, c.Delete(context.Background(), cat, client.PropagationPolicy("DeletePropagationForeground")))
require.Eventually(t, func() bool {
err := c.Get(context.Background(), types.NamespacedName{Name: cat.Name}, &catalogd.ClusterCatalog{})
return errors.IsNotFound(err)
return err != nil && errors.IsNotFound(err)
}, pollDuration, pollInterval)
require.NoError(t, c.Delete(context.Background(), clusterExtension))
require.Eventually(t, func() bool {
Expand Down

0 comments on commit 16e12c2

Please sign in to comment.